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

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

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
(Empty)
1 library angular.core.parser.characters;
2
3 const int $EOF = 0;
4 const int $TAB = 9;
5 const int $LF = 10;
6 const int $VTAB = 11;
7 const int $FF = 12;
8 const int $CR = 13;
9 const int $SPACE = 32;
10 const int $BANG = 33;
11 const int $DQ = 34;
12 const int $$ = 36;
13 const int $PERCENT = 37;
14 const int $AMPERSAND = 38;
15 const int $SQ = 39;
16 const int $LPAREN = 40;
17 const int $RPAREN = 41;
18 const int $STAR = 42;
19 const int $PLUS = 43;
20 const int $COMMA = 44;
21 const int $MINUS = 45;
22 const int $PERIOD = 46;
23 const int $SLASH = 47;
24 const int $COLON = 58;
25 const int $SEMICOLON = 59;
26 const int $LT = 60;
27 const int $EQ = 61;
28 const int $GT = 62;
29 const int $QUESTION = 63;
30
31 const int $0 = 48;
32 const int $9 = 57;
33
34 const int $A = 65;
35 const int $B = 66;
36 const int $C = 67;
37 const int $D = 68;
38 const int $E = 69;
39 const int $F = 70;
40 const int $G = 71;
41 const int $H = 72;
42 const int $I = 73;
43 const int $J = 74;
44 const int $K = 75;
45 const int $L = 76;
46 const int $M = 77;
47 const int $N = 78;
48 const int $O = 79;
49 const int $P = 80;
50 const int $Q = 81;
51 const int $R = 82;
52 const int $S = 83;
53 const int $T = 84;
54 const int $U = 85;
55 const int $V = 86;
56 const int $W = 87;
57 const int $X = 88;
58 const int $Y = 89;
59 const int $Z = 90;
60
61 const int $LBRACKET = 91;
62 const int $BACKSLASH = 92;
63 const int $RBRACKET = 93;
64 const int $CARET = 94;
65 const int $_ = 95;
66
67 const int $a = 97;
68 const int $b = 98;
69 const int $c = 99;
70 const int $d = 100;
71 const int $e = 101;
72 const int $f = 102;
73 const int $g = 103;
74 const int $h = 104;
75 const int $i = 105;
76 const int $j = 106;
77 const int $k = 107;
78 const int $l = 108;
79 const int $m = 109;
80 const int $n = 110;
81 const int $o = 111;
82 const int $p = 112;
83 const int $q = 113;
84 const int $r = 114;
85 const int $s = 115;
86 const int $t = 116;
87 const int $u = 117;
88 const int $v = 118;
89 const int $w = 119;
90 const int $x = 120;
91 const int $y = 121;
92 const int $z = 122;
93
94 const int $LBRACE = 123;
95 const int $BAR = 124;
96 const int $RBRACE = 125;
97 const int $TILDE = 126;
98 const int $NBSP = 160;
99
100 bool isWhitespace(int code) {
101 return (code >= $TAB && code <= $SPACE) || (code == $NBSP);
102 }
103
104 bool isIdentifierStart(int code) {
105 return ($a <= code && code <= $z)
106 || ($A <= code && code <= $Z)
107 || (code == $_)
108 || (code == $$);
109 }
110
111 bool isIdentifierPart(int code) {
112 return ($a <= code && code <= $z)
113 || ($A <= code && code <= $Z)
114 || ($0 <= code && code <= $9)
115 || (code == $_)
116 || (code == $$);
117 }
118
119 bool isDigit(int code) {
120 return ($0 <= code && code <= $9);
121 }
122
123 bool isExponentStart(int code) {
124 return (code == $e || code == $E);
125 }
126
127 bool isExponentSign(int code) {
128 return (code == $MINUS || code == $PLUS);
129 }
130
131 int unescape(int code) {
132 switch(code) {
133 case $n: return $LF;
134 case $f: return $FF;
135 case $r: return $CR;
136 case $t: return $TAB;
137 case $v: return $VTAB;
138 default: return code;
139 }
140 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/core/module.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