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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library angular.core.parser.characters; 1 library angular.core.parser.characters;
2 2
3 const int $EOF = 0; 3 const int $EOF = 0;
4 const int $TAB = 9; 4 const int $TAB = 9;
5 const int $LF = 10; 5 const int $LF = 10;
6 const int $VTAB = 11; 6 const int $VTAB = 11;
7 const int $FF = 12; 7 const int $FF = 12;
8 const int $CR = 13; 8 const int $CR = 13;
9 const int $SPACE = 32; 9 const int $SPACE = 32;
10 const int $BANG = 33; 10 const int $BANG = 33;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const int $x = 120; 90 const int $x = 120;
91 const int $y = 121; 91 const int $y = 121;
92 const int $z = 122; 92 const int $z = 122;
93 93
94 const int $LBRACE = 123; 94 const int $LBRACE = 123;
95 const int $BAR = 124; 95 const int $BAR = 124;
96 const int $RBRACE = 125; 96 const int $RBRACE = 125;
97 const int $TILDE = 126; 97 const int $TILDE = 126;
98 const int $NBSP = 160; 98 const int $NBSP = 160;
99 99
100 bool isWhitespace(int code) { 100 bool isWhitespace(int code) =>
101 return (code >= $TAB && code <= $SPACE) || (code == $NBSP); 101 (code >= $TAB && code <= $SPACE) || (code == $NBSP);
102 }
103 102
104 bool isIdentifierStart(int code) { 103 bool isIdentifierStart(int code) =>
105 return ($a <= code && code <= $z) 104 ($a <= code && code <= $z) ||
106 || ($A <= code && code <= $Z) 105 ($A <= code && code <= $Z) ||
107 || (code == $_) 106 (code == $_) ||
108 || (code == $$); 107 (code == $$);
109 }
110 108
111 bool isIdentifierPart(int code) { 109 bool isIdentifierPart(int code) =>
112 return ($a <= code && code <= $z) 110 ($a <= code && code <= $z) ||
113 || ($A <= code && code <= $Z) 111 ($A <= code && code <= $Z) ||
114 || ($0 <= code && code <= $9) 112 ($0 <= code && code <= $9) ||
115 || (code == $_) 113 (code == $_) ||
116 || (code == $$); 114 (code == $$);
117 }
118 115
119 bool isDigit(int code) { 116 bool isDigit(int code) => $0 <= code && code <= $9;
120 return ($0 <= code && code <= $9);
121 }
122 117
123 bool isExponentStart(int code) { 118 bool isExponentStart(int code) => code == $e || code == $E;
124 return (code == $e || code == $E);
125 }
126 119
127 bool isExponentSign(int code) { 120 bool isExponentSign(int code) => code == $MINUS || code == $PLUS;
128 return (code == $MINUS || code == $PLUS);
129 }
130 121
131 int unescape(int code) { 122 int unescape(int code) {
132 switch(code) { 123 switch(code) {
133 case $n: return $LF; 124 case $n: return $LF;
134 case $f: return $FF; 125 case $f: return $FF;
135 case $r: return $CR; 126 case $r: return $CR;
136 case $t: return $TAB; 127 case $t: return $TAB;
137 case $v: return $VTAB; 128 case $v: return $VTAB;
138 default: return code; 129 default: return code;
139 } 130 }
140 } 131 }
OLDNEW
« 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