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

Unified Diff: third_party/pkg/angular/lib/core/parser/utils.dart

Issue 256553002: Revert "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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/core/parser/utils.dart
diff --git a/third_party/pkg/angular/lib/core/parser/utils.dart b/third_party/pkg/angular/lib/core/parser/utils.dart
index 82a898d7b6c69232c9ec98589abdcf2fb7c786f0..d79c9c96f4deb6fa899011a27275d746b64e24c0 100644
--- a/third_party/pkg/angular/lib/core/parser/utils.dart
+++ b/third_party/pkg/angular/lib/core/parser/utils.dart
@@ -1,7 +1,8 @@
library angular.core.parser.utils;
import 'package:angular/core/parser/syntax.dart' show Expression;
-import 'package:angular/core/module_internal.dart';
+import 'package:angular/core/module.dart';
+import 'package:angular/utils.dart' show isReservedWord;
export 'package:angular/utils.dart' show relaxFnApply, relaxFnArgs, toBool;
/// Marker for an uninitialized value.
@@ -19,15 +20,14 @@ class EvalError {
}
/// Evaluate the [list] in context of the [scope].
-List evalList(scope, List<Expression> list, [FormatterMap formatters]) {
- final length = list.length;
- int cacheLength = _evalListCache.length;
- for (; cacheLength <= length; cacheLength++) {
+List evalList(scope, List<Expression> list, [FilterMap filters]) {
+ int length = list.length;
+ for (int cacheLength = _evalListCache.length; cacheLength <= length; cacheLength++) {
_evalListCache.add(new List(cacheLength));
}
List result = _evalListCache[length];
for (int i = 0; i < length; i++) {
- result[i] = list[i].eval(scope, formatters);
+ result[i] = list[i].eval(scope, filters);
}
return result;
}
@@ -47,7 +47,7 @@ autoConvertAdd(a, b) {
}
if (a != null) return a;
if (b != null) return b;
- return 0;
+ return null;
}
/**
@@ -97,3 +97,9 @@ setKeyed(object, key, value) {
}
return value;
}
+
+/// Returns a new symbol with the given name if the name is a legal
+/// symbol name. Otherwise, returns null.
+Symbol newSymbol(String name) {
+ return isReservedWord(name) ? null : new Symbol(name);
+}
« no previous file with comments | « third_party/pkg/angular/lib/core/parser/unparser.dart ('k') | third_party/pkg/angular/lib/core/registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698