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

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

Issue 256553002: Revert "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 (code >= $TAB && code <= $SPACE) || (code == $NBSP); 101 return (code >= $TAB && code <= $SPACE) || (code == $NBSP);
102 }
102 103
103 bool isIdentifierStart(int code) => 104 bool isIdentifierStart(int code) {
104 ($a <= code && code <= $z) || 105 return ($a <= code && code <= $z)
105 ($A <= code && code <= $Z) || 106 || ($A <= code && code <= $Z)
106 (code == $_) || 107 || (code == $_)
107 (code == $$); 108 || (code == $$);
109 }
108 110
109 bool isIdentifierPart(int code) => 111 bool isIdentifierPart(int code) {
110 ($a <= code && code <= $z) || 112 return ($a <= code && code <= $z)
111 ($A <= code && code <= $Z) || 113 || ($A <= code && code <= $Z)
112 ($0 <= code && code <= $9) || 114 || ($0 <= code && code <= $9)
113 (code == $_) || 115 || (code == $_)
114 (code == $$); 116 || (code == $$);
117 }
115 118
116 bool isDigit(int code) => $0 <= code && code <= $9; 119 bool isDigit(int code) {
120 return ($0 <= code && code <= $9);
121 }
117 122
118 bool isExponentStart(int code) => code == $e || code == $E; 123 bool isExponentStart(int code) {
124 return (code == $e || code == $E);
125 }
119 126
120 bool isExponentSign(int code) => code == $MINUS || code == $PLUS; 127 bool isExponentSign(int code) {
128 return (code == $MINUS || code == $PLUS);
129 }
121 130
122 int unescape(int code) { 131 int unescape(int code) {
123 switch(code) { 132 switch(code) {
124 case $n: return $LF; 133 case $n: return $LF;
125 case $f: return $FF; 134 case $f: return $FF;
126 case $r: return $CR; 135 case $r: return $CR;
127 case $t: return $TAB; 136 case $t: return $TAB;
128 case $v: return $VTAB; 137 case $v: return $VTAB;
129 default: return code; 138 default: return code;
130 } 139 }
131 } 140 }
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