OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.resolver; | 8 library engine.resolver; |
9 | 9 |
10 import 'dart:collection'; | 10 import 'dart:collection'; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // process classes | 257 // process classes |
258 for (CompilationUnitMember unitMember in unit.declarations) { | 258 for (CompilationUnitMember unitMember in unit.declarations) { |
259 if (unitMember is ClassDeclaration) { | 259 if (unitMember is ClassDeclaration) { |
260 this._classDeclaration = unitMember; | 260 this._classDeclaration = unitMember; |
261 this._classElement = _classDeclaration.element as ClassElementImpl; | 261 this._classElement = _classDeclaration.element as ClassElementImpl; |
262 this._classToolkitObjects.clear(); | 262 this._classToolkitObjects.clear(); |
263 parseModuleClass(); | 263 parseModuleClass(); |
264 // process annotations | 264 // process annotations |
265 NodeList<Annotation> annotations = _classDeclaration.metadata; | 265 NodeList<Annotation> annotations = _classDeclaration.metadata; |
266 for (Annotation annotation in annotations) { | 266 for (Annotation annotation in annotations) { |
| 267 // verify annotation |
| 268 if (annotation.arguments == null) { |
| 269 continue; |
| 270 } |
267 this._annotation = annotation; | 271 this._annotation = annotation; |
268 // @NgFilter | 272 // @NgFilter |
269 if (isAngularAnnotation2(_NG_FILTER)) { | 273 if (isAngularAnnotation2(_NG_FILTER)) { |
270 parseNgFilter(); | 274 parseNgFilter(); |
271 continue; | 275 continue; |
272 } | 276 } |
273 // @NgComponent | 277 // @NgComponent |
274 if (isAngularAnnotation2(_NG_COMPONENT)) { | 278 if (isAngularAnnotation2(_NG_COMPONENT)) { |
275 parseNgComponent(); | 279 parseNgComponent(); |
276 continue; | 280 continue; |
(...skipping 20585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20862 * @param correction the template used to create the correction to be displaye
d for the error | 20866 * @param correction the template used to create the correction to be displaye
d for the error |
20863 */ | 20867 */ |
20864 ResolverErrorCode.con2(String name, int ordinal, this.type, this.message, Stri
ng correction) : super(name, ordinal) { | 20868 ResolverErrorCode.con2(String name, int ordinal, this.type, this.message, Stri
ng correction) : super(name, ordinal) { |
20865 this.correction10 = correction; | 20869 this.correction10 = correction; |
20866 } | 20870 } |
20867 | 20871 |
20868 String get correction => correction10; | 20872 String get correction => correction10; |
20869 | 20873 |
20870 ErrorSeverity get errorSeverity => type.severity; | 20874 ErrorSeverity get errorSeverity => type.severity; |
20871 } | 20875 } |
OLD | NEW |