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

Side by Side Diff: third_party/pkg/angular/bin/parser_generator_for_spec.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
« no previous file with comments | « third_party/pkg/angular/analyze.sh ('k') | third_party/pkg/angular/bin/pub_build.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import 'dart:io' as io;
2
1 import 'package:di/di.dart'; 3 import 'package:di/di.dart';
2 import 'package:di/dynamic_injector.dart'; 4 import 'package:di/dynamic_injector.dart';
3 import 'package:angular/core/module.dart';
4 import 'package:angular/core/parser/parser.dart'; 5 import 'package:angular/core/parser/parser.dart';
5 import 'package:angular/tools/parser_generator/generator.dart';
6 import 'package:angular/tools/parser_getter_setter/generator.dart'; 6 import 'package:angular/tools/parser_getter_setter/generator.dart';
7 7
8 main(arguments) { 8 main(arguments) {
9 var isGetter = !arguments.isEmpty;
10
11 Module module = new Module()..type(Parser, implementedBy: DynamicParser); 9 Module module = new Module()..type(Parser, implementedBy: DynamicParser);
12 if (isGetter) { 10 module.type(ParserBackend, implementedBy: DartGetterSetterGen);
13 module.type(ParserBackend, implementedBy: DartGetterSetterGen);
14 } else {
15 module.type(ParserBackend, implementedBy: DynamicParserBackend);
16 module.type(FilterMap, implementedBy: NullFilterMap);
17 }
18 Injector injector = new DynamicInjector(modules: [module], 11 Injector injector = new DynamicInjector(modules: [module],
19 allowImplicitInjection: true); 12 allowImplicitInjection: true);
20 13
21 // List generated using: 14 // List generated using:
22 // node node_modules/karma/bin/karma run | grep -Eo ":XNAY:.*:XNAY:" | sed -e 's/:XNAY://g' | sed -e "s/^/'/" | sed -e "s/$/',/" | sort | uniq > missing_expre ssions 15 // node node_modules/karma/bin/karma run | grep -Eo ":XNAY:.*:XNAY:" | sed -e 's/:XNAY://g' | sed -e "s/^/'/" | sed -e "s/$/',/" | sort | uniq > missing_expre ssions
23 injector.get(isGetter ? ParserGetterSetter : ParserGenerator).generateParser([ 16 injector.get(ParserGetterSetter).generateParser([
24 "foo == 'bar' ||\nbaz", 17 "foo == 'bar' ||\nbaz",
25 "nonmap['hello']", 18 "nonmap['hello']",
26 "nonmap['hello']=3", 19 "nonmap['hello']=3",
27 "this['a'].b", 20 "this['a'].b",
28 "const", 21 "const",
29 "null", 22 "null",
30 "[1, 2].length", 23 "[1, 2].length",
31 24
32 "doesNotExist", 25 "doesNotExist",
33 "doesNotExist()", 26 "doesNotExist()",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 'obj.nested.field = 1', 106 'obj.nested.field = 1',
114 'obj.overload = 7', 107 'obj.overload = 7',
115 'obj.setter = 2', 108 'obj.setter = 2',
116 'str', 109 'str',
117 'str="bob"', 110 'str="bob"',
118 'suffix = "!"', 111 'suffix = "!"',
119 'taxRate / 100 * subTotal', 112 'taxRate / 100 * subTotal',
120 'true', 113 'true',
121 'true || run()', 114 'true || run()',
122 'undefined', 115 'undefined',
116 'null < 0',
117 'null * 3',
118 'null + 6',
119 '5 + null',
120 'null - 4',
121 '3 - null',
122 'null + null',
123 'null - null',
123 124
124 ';;1;;', 125 ';;1;;',
125 '1==1', 126 '1==1',
126 '!(11 == 10)', 127 '!(11 == 10)',
127 '1 + -2.5', 128 '1 + -2.5',
128 '[{a', 129 '[{a',
129 'array[5=4]', 130 'array[5=4]',
130 '\$root', 131 '\$root',
131 'subTotal * taxRate / 100', 132 'subTotal * taxRate / 100',
132 '!!true', 133 '!!true',
(...skipping 27 matching lines...) Expand all
160 "-0--1++2*-3/-4", 161 "-0--1++2*-3/-4",
161 "1/2*3", 162 "1/2*3",
162 "0||2", 163 "0||2",
163 "0||1&&2", 164 "0||1&&2",
164 'undefined+1', 165 'undefined+1',
165 "12/6/2", 166 "12/6/2",
166 "a=undefined", 167 "a=undefined",
167 'add(a,b)', 168 'add(a,b)',
168 'notAProperty', 169 'notAProperty',
169 "'Foo'|uppercase", 170 "'Foo'|uppercase",
171 "'f' + ('o'|uppercase) + 'o'",
170 "1|increment:2", 172 "1|increment:2",
171 "'abcd'|substring:1:offset", 173 "'abcd'|substring:1:offset",
172 "'abcd'|substring:1:3|uppercase", 174 "'abcd'|substring:1:3|uppercase",
173 "3*4~/2%5", 175 "3*4~/2%5",
174 "7==3+4?10:20", 176 "7==3+4?10:20",
175 "false?10:20", 177 "false?10:20",
176 "5?10:20", 178 "5?10:20",
177 "null?10:20", 179 "null?10:20",
178 "true||false?10:20", 180 "true||false?10:20",
179 "true&&false?10:20", 181 "true&&false?10:20",
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 "o.super()", 421 "o.super()",
420 "o.switch()", 422 "o.switch()",
421 "o.this()", 423 "o.this()",
422 "o.throw()", 424 "o.throw()",
423 "o.true()", 425 "o.true()",
424 "o.try()", 426 "o.try()",
425 "o.var()", 427 "o.var()",
426 "o.void()", 428 "o.void()",
427 "o.while()", 429 "o.while()",
428 "o.with()", 430 "o.with()",
429 ]); 431
432 '"Foo"|(',
433 '"Foo"|1234',
434 '"Foo"|"uppercase"',
435 'x.(',
436 'x. 1234',
437 'x."foo"',
438 '{(:0}',
439 '{1234:0}',
440
441 "sub1(1)",
442 "sub1(3, b: 2)",
443 "sub2()",
444 "sub2(a: 3)",
445 "sub2(a: 3, b: 2)",
446 "sub2(b: 4)",
447
448 "o.sub1(1)",
449 "o.sub1(3, b: 2)",
450 "o.sub2()",
451 "o.sub2(a: 3)",
452 "o.sub2(a: 3, b: 2)",
453 "o.sub2(b: 4)",
454
455 "(sub1)(1)",
456 "(sub1)(3, b: 2)",
457 "(sub2)()",
458 "(sub2)(a: 3)",
459 "(sub2)(a: 3, b: 2)",
460 "(sub2)(b: 4)",
461
462 'foo(a: 0, a: 1)',
463 'foo(a: 0, b: 1, a: 2)',
464 'foo(0, a: 1, a: 2)',
465 'foo(0, a: 1, b: 2, a: 3)',
466
467 'foo(if: 0)',
468 'foo(a: 0, class: 0)',
469
470 'foo(a: 0)',
471 'foo(a: 0, b: 1)',
472 'foo(b: 1, a: 0)',
473 'foo(0)',
474 'foo(0, a: 0)',
475 'foo(0, a: 0, b: 1)',
476 'foo(0, b: 1, a: 0)',
477
478 'o.foo(a: 0)',
479 'o.foo(a: 0, b: 1)',
480 'o.foo(b: 1, a: 0)',
481 'o.foo(0)',
482 'o.foo(0, a: 0)',
483 'o.foo(0, a: 0, b: 1)',
484 'o.foo(0, b: 1, a: 0)',
485
486 '(foo)(a: 0)',
487 '(foo)(a: 0, b: 1)',
488 '(foo)(b: 1, a: 0)',
489 '(foo)(0)',
490 '(foo)(0, a: 0)',
491 '(foo)(0, a: 0, b: 1)',
492 '(foo)(0, b: 1, a: 0)',
493 ], io.stdout);
430 } 494 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/analyze.sh ('k') | third_party/pkg/angular/bin/pub_build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698