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

Unified Diff: third_party/pkg/angular/lib/tools/expression_extractor.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/tools/expression_extractor.dart
diff --git a/third_party/pkg/angular/lib/tools/expression_extractor.dart b/third_party/pkg/angular/lib/tools/expression_extractor.dart
index 8326071f807726044e705fbf77774e1c8f87b17b..ae42c07f90316fc9d230fe21634ba3ff668ed573 100644
--- a/third_party/pkg/angular/lib/tools/expression_extractor.dart
+++ b/third_party/pkg/angular/lib/tools/expression_extractor.dart
@@ -10,8 +10,9 @@ import 'package:angular/tools/common.dart';
import 'package:di/di.dart';
import 'package:di/dynamic_injector.dart';
-import 'package:angular/core/parser/parser_library.dart';
-import 'package:angular/tools/parser_generator/dart_code_gen.dart';
+
+import 'package:angular/core/module.dart';
+import 'package:angular/core/parser/parser.dart';
import 'package:angular/tools/parser_generator/generator.dart';
main(args) {
@@ -37,22 +38,24 @@ main(args) {
var headerFile = args[2];
var footerFile = args[3];
var outputFile = args[4];
- SourcePrinter _prt;
+ SourcePrinter printer;
if (outputFile == '--') {
- _prt = new SourcePrinter();
+ printer = new SourcePrinter();
} else {
- _prt = new FileSourcePrinter(outputFile);
+ printer = new FileSourcePrinter(outputFile);
}
// Output the header file first.
if (headerFile != '') {
- _prt.printSrc(_readFile(headerFile));
+ printer.printSrc(_readFile(headerFile));
}
- _prt.printSrc('// Found ${expressions.length} expressions');
+ printer.printSrc('// Found ${expressions.length} expressions');
Module module = new Module()
- ..type(ParserBackend, implementedBy: DartCodeGen)
- ..value(SourcePrinter, _prt);
+ ..type(Parser, implementedBy: DynamicParser)
+ ..type(ParserBackend, implementedBy: DynamicParserBackend)
+ ..type(FilterMap, implementedBy: NullFilterMap)
+ ..value(SourcePrinter, printer);
Injector injector =
new DynamicInjector(modules: [module], allowImplicitInjection: true);
@@ -61,7 +64,7 @@ main(args) {
// Output footer last.
if (footerFile != '') {
- _prt.printSrc(_readFile(footerFile));
+ printer.printSrc(_readFile(footerFile));
}
}
« no previous file with comments | « third_party/pkg/angular/lib/routing/module.dart ('k') | third_party/pkg/angular/lib/tools/html_extractor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698