| 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 d79c9c96f4deb6fa899011a27275d746b64e24c0..82a898d7b6c69232c9ec98589abdcf2fb7c786f0 100644
|
| --- a/third_party/pkg/angular/lib/core/parser/utils.dart
|
| +++ b/third_party/pkg/angular/lib/core/parser/utils.dart
|
| @@ -1,8 +1,7 @@
|
| library angular.core.parser.utils;
|
|
|
| import 'package:angular/core/parser/syntax.dart' show Expression;
|
| -import 'package:angular/core/module.dart';
|
| -import 'package:angular/utils.dart' show isReservedWord;
|
| +import 'package:angular/core/module_internal.dart';
|
| export 'package:angular/utils.dart' show relaxFnApply, relaxFnArgs, toBool;
|
|
|
| /// Marker for an uninitialized value.
|
| @@ -20,14 +19,15 @@ class EvalError {
|
| }
|
|
|
| /// Evaluate the [list] in context of the [scope].
|
| -List evalList(scope, List<Expression> list, [FilterMap filters]) {
|
| - int length = list.length;
|
| - for (int cacheLength = _evalListCache.length; cacheLength <= length; cacheLength++) {
|
| +List evalList(scope, List<Expression> list, [FormatterMap formatters]) {
|
| + final length = list.length;
|
| + int cacheLength = _evalListCache.length;
|
| + for (; 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, filters);
|
| + result[i] = list[i].eval(scope, formatters);
|
| }
|
| return result;
|
| }
|
| @@ -47,7 +47,7 @@ autoConvertAdd(a, b) {
|
| }
|
| if (a != null) return a;
|
| if (b != null) return b;
|
| - return null;
|
| + return 0;
|
| }
|
|
|
| /**
|
| @@ -97,9 +97,3 @@ 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);
|
| -}
|
|
|