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

Side by Side Diff: pkg/polymer_expressions/lib/polymer_expressions.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * A binding delegate used with Polymer elements that 6 * A binding delegate used with Polymer elements that
7 * allows for complex binding expressions, including 7 * allows for complex binding expressions, including
8 * property access, function invocation, 8 * property access, function invocation,
9 * list/map indexing, and two-way filtering. 9 * list/map indexing, and two-way filtering.
10 * 10 *
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 vars[v.identifier] = i; 120 vars[v.identifier] = i;
121 Scope childScope = new Scope(parent: _scope, variables: vars); 121 Scope childScope = new Scope(parent: _scope, variables: vars);
122 return childScope; 122 return childScope;
123 }).toList(growable: false); 123 }).toList(growable: false);
124 } else { 124 } else {
125 _value = (_converter == null) ? v : _converter(v); 125 _value = (_converter == null) ? v : _converter(v);
126 } 126 }
127 notifyPropertyChange(#value, oldValue, _value); 127 notifyPropertyChange(#value, oldValue, _value);
128 } 128 }
129 129
130 get value => _value; 130 @reflectable get value => _value;
131 131
132 set value(v) { 132 @reflectable set value(v) {
133 try { 133 try {
134 assign(_expr, v, _scope); 134 assign(_expr, v, _scope);
135 } on EvalException catch (e) { 135 } on EvalException catch (e) {
136 // silently swallow binding errors 136 // silently swallow binding errors
137 } 137 }
138 } 138 }
139 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698