Chromium Code Reviews

Side by Side Diff: packages/dart_style/test/regression/0100/0114.unit

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 >>>
2 operatorNameToIdentifier(String name) {
3 if (name == null) {
4 return name;
5 } else if (identical(name, '==')) {
6 return r'operator$eq';
7 } else if (identical(name, '~')) {
8 return r'operator$not';
9 } else if (identical(name, '[]')) {
10 return r'operator$index';
11 } else if (identical(name, '[]=')) {
12 return r'operator$indexSet';
13 } else if (identical(name, '*')) {
14 return r'operator$mul';
15 } else if (identical(name, '/')) {
16 return r'operator$div';
17 } else if (identical(name, '%')) {
18 return r'operator$mod';
19 } else if (identical(name, '~/')) {
20 return r'operator$tdiv';
21 } else if (identical(name, '+')) {
22 return r'operator$add';
23 } else if (identical(name, '<<')) {
24 return r'operator$shl';
25 } else if (identical(name, '>>')) {
26 return r'operator$shr';
27 } else if (identical(name, '>=')) {
28 return r'operator$ge';
29 } else if (identical(name, '>')) {
30 return r'operator$gt';
31 } else if (identical(name, '<=')) {
32 return r'operator$le';
33 } else if (identical(name, '<')) {
34 return r'operator$lt';
35 } else if (identical(name, '&')) {
36 return r'operator$and';
37 } else if (identical(name, '^')) {
38 return r'operator$xor';
39 } else if (identical(name, '|')) {
40 return r'operator$or';
41 } else if (identical(name, '-')) {
42 return r'operator$sub';
43 } else if (identical(name, 'unary-')) {
44 return r'operator$negate';
45 } else {
46 return name;
47 }
48 }
49 <<<
50 operatorNameToIdentifier(String name) {
51 if (name == null) {
52 return name;
53 } else if (identical(name, '==')) {
54 return r'operator$eq';
55 } else if (identical(name, '~')) {
56 return r'operator$not';
57 } else if (identical(name, '[]')) {
58 return r'operator$index';
59 } else if (identical(name, '[]=')) {
60 return r'operator$indexSet';
61 } else if (identical(name, '*')) {
62 return r'operator$mul';
63 } else if (identical(name, '/')) {
64 return r'operator$div';
65 } else if (identical(name, '%')) {
66 return r'operator$mod';
67 } else if (identical(name, '~/')) {
68 return r'operator$tdiv';
69 } else if (identical(name, '+')) {
70 return r'operator$add';
71 } else if (identical(name, '<<')) {
72 return r'operator$shl';
73 } else if (identical(name, '>>')) {
74 return r'operator$shr';
75 } else if (identical(name, '>=')) {
76 return r'operator$ge';
77 } else if (identical(name, '>')) {
78 return r'operator$gt';
79 } else if (identical(name, '<=')) {
80 return r'operator$le';
81 } else if (identical(name, '<')) {
82 return r'operator$lt';
83 } else if (identical(name, '&')) {
84 return r'operator$and';
85 } else if (identical(name, '^')) {
86 return r'operator$xor';
87 } else if (identical(name, '|')) {
88 return r'operator$or';
89 } else if (identical(name, '-')) {
90 return r'operator$sub';
91 } else if (identical(name, 'unary-')) {
92 return r'operator$negate';
93 } else {
94 return name;
95 }
96 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/regression/0100/0113.unit ('k') | packages/dart_style/test/regression/0100/0115.stmt » ('j') | no next file with comments »

Powered by Google App Engine