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

Unified Diff: third_party/pkg/angular/lib/tools/parser_generator/generator.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/parser_generator/generator.dart
diff --git a/third_party/pkg/angular/lib/tools/parser_generator/generator.dart b/third_party/pkg/angular/lib/tools/parser_generator/generator.dart
index 60d1be0771e4d77b1093bfbdbb85271f3b425d4d..27877cdf8dc8ae8270a6e7712ed3b095a2766601 100644
--- a/third_party/pkg/angular/lib/tools/parser_generator/generator.dart
+++ b/third_party/pkg/angular/lib/tools/parser_generator/generator.dart
@@ -28,9 +28,9 @@ class ParserGenerator {
}
generateParser(Iterable<String> expressions) {
- print("StaticParserFunctions functions(FilterLookup filters)");
+ print("StaticParserFunctions functions()");
print(" => new StaticParserFunctions(");
- print(" buildEval(filters), buildAssign(filters));");
+ print(" buildEval(), buildAssign());");
print("");
// Compute the function maps.
@@ -50,7 +50,7 @@ class ParserGenerator {
void generateBuildFunction(String name, Map map) {
String mapLiteral = map.keys.map((e) => ' "$e": ${map[e]}').join(',\n');
- print("Map<String, Function> $name(FilterLookup filters) {");
+ print("Map<String, Function> $name() {");
print(" return {\n$mapLiteral\n };");
print("}");
print("");
@@ -74,7 +74,7 @@ class ParserGenerator {
}
String getCode(Expression e, bool assign) {
- String args = assign ? "scope, value" : "scope";
+ String args = assign ? "scope, value" : "scope, filters";
String code = _codegen.generate(e, assign);
if (e.isChain) {
code = code.replaceAll('\n', '\n ');

Powered by Google App Engine
This is Rietveld 408576698