Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: third_party/pkg/angular/lib/core/parser/characters.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/core/parser/characters.dart
diff --git a/third_party/pkg/angular/lib/core/parser/characters.dart b/third_party/pkg/angular/lib/core/parser/characters.dart
index 2cc5c0217f9457bcbb7ff3e2b4bee8b4858ac623..feefc48c2a25f96714f3e44d449a7960180b1e23 100644
--- a/third_party/pkg/angular/lib/core/parser/characters.dart
+++ b/third_party/pkg/angular/lib/core/parser/characters.dart
@@ -97,36 +97,27 @@ const int $RBRACE = 125;
const int $TILDE = 126;
const int $NBSP = 160;
-bool isWhitespace(int code) {
- return (code >= $TAB && code <= $SPACE) || (code == $NBSP);
-}
+bool isWhitespace(int code) =>
+ (code >= $TAB && code <= $SPACE) || (code == $NBSP);
-bool isIdentifierStart(int code) {
- return ($a <= code && code <= $z)
- || ($A <= code && code <= $Z)
- || (code == $_)
- || (code == $$);
-}
+bool isIdentifierStart(int code) =>
+ ($a <= code && code <= $z) ||
+ ($A <= code && code <= $Z) ||
+ (code == $_) ||
+ (code == $$);
-bool isIdentifierPart(int code) {
- return ($a <= code && code <= $z)
- || ($A <= code && code <= $Z)
- || ($0 <= code && code <= $9)
- || (code == $_)
- || (code == $$);
- }
+bool isIdentifierPart(int code) =>
+ ($a <= code && code <= $z) ||
+ ($A <= code && code <= $Z) ||
+ ($0 <= code && code <= $9) ||
+ (code == $_) ||
+ (code == $$);
-bool isDigit(int code) {
- return ($0 <= code && code <= $9);
-}
+bool isDigit(int code) => $0 <= code && code <= $9;
-bool isExponentStart(int code) {
- return (code == $e || code == $E);
-}
+bool isExponentStart(int code) => code == $e || code == $E;
-bool isExponentSign(int code) {
- return (code == $MINUS || code == $PLUS);
-}
+bool isExponentSign(int code) => code == $MINUS || code == $PLUS;
int unescape(int code) {
switch(code) {
« no previous file with comments | « third_party/pkg/angular/lib/core/module_internal.dart ('k') | third_party/pkg/angular/lib/core/parser/dynamic_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698