@@ -200,8 +200,6 @@ class Scope {
200
200
* evaluates to a non-null value.
201
201
* * [reactionFn] : The reaction function to execute when a change is detected in the watched
202
202
* expression.
203
- * * [context] : The object against which the expression is evaluated. This defaults to the
204
- * [Scope.context] if no context is specified.
205
203
* * [formatters] : If the watched expression contains formatters,
206
204
* this map specifies the set of formatters that are used by the expression.
207
205
* * [canChangeModel] : Specifies whether the [reactionFn] changes the model. Reaction
@@ -212,8 +210,8 @@ class Scope {
212
210
* by reference. When watching a collection, the reaction function receives a
213
211
* [CollectionChangeItem] that lists all the changes.
214
212
*/
215
- Watch watch (String expression, ReactionFn reactionFn, {context,
216
- FormatterMap formatters, bool canChangeModel: true , bool collection: false }) {
213
+ Watch watch (String expression, ReactionFn reactionFn,
214
+ { FormatterMap formatters, bool canChangeModel: true , bool collection: false }) {
217
215
assert (isAttached);
218
216
assert (expression is String );
219
217
assert (canChangeModel is bool );
@@ -239,7 +237,7 @@ class Scope {
239
237
}
240
238
}
241
239
242
- AST ast = rootScope._astParser (expression, context : context,
240
+ AST ast = rootScope._astParser (expression,
243
241
formatters: formatters, collection: collection);
244
242
245
243
WatchGroup group = canChangeModel ? _readWriteGroup : _readOnlyGroup;
@@ -1052,14 +1050,10 @@ class _AstParser {
1052
1050
: _visitor = new ExpressionVisitor (closureMap);
1053
1051
1054
1052
AST call (String input, {FormatterMap formatters,
1055
- bool collection: false ,
1056
- Object context: null }) {
1053
+ bool collection: false }) {
1057
1054
_visitor.formatters = formatters;
1058
1055
AST contextRef = _visitor.contextRef;
1059
1056
try {
1060
- if (context != null ) {
1061
- _visitor.contextRef = new ConstantAST (context, '#${_id ++}' );
1062
- }
1063
1057
var exp = _parser (input);
1064
1058
return collection ? _visitor.visitCollection (exp) : _visitor.visit (exp);
1065
1059
} finally {
0 commit comments