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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://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
===================================================================
--- third_party/pkg/angular/lib/tools/parser_generator/generator.dart (revision 33054)
+++ third_party/pkg/angular/lib/tools/parser_generator/generator.dart (working copy)
@@ -28,9 +28,9 @@
}
generateParser(Iterable<String> expressions) {
- print("StaticParserFunctions functions()");
+ print("StaticParserFunctions functions(FilterLookup filters)");
print(" => new StaticParserFunctions(");
- print(" buildEval(), buildAssign());");
+ print(" buildEval(filters), buildAssign(filters));");
print("");
// Compute the function maps.
@@ -50,7 +50,7 @@
void generateBuildFunction(String name, Map map) {
String mapLiteral = map.keys.map((e) => ' "$e": ${map[e]}').join(',\n');
- print("Map<String, Function> $name() {");
+ print("Map<String, Function> $name(FilterLookup filters) {");
print(" return {\n$mapLiteral\n };");
print("}");
print("");
@@ -74,7 +74,7 @@
}
String getCode(Expression e, bool assign) {
- String args = assign ? "scope, value" : "scope, filters";
+ String args = assign ? "scope, value" : "scope";
String code = _codegen.generate(e, assign);
if (e.isChain) {
code = code.replaceAll('\n', '\n ');

Powered by Google App Engine
This is Rietveld 408576698