| OLD | NEW |
| 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 library elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 | 8 |
| 9 import 'elements.dart'; | 9 import 'elements.dart'; |
| 10 import '../../compiler.dart' as api; | 10 import '../../compiler.dart' as api; |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 | 1251 |
| 1252 class SynthesizedConstructorElementX extends FunctionElementX { | 1252 class SynthesizedConstructorElementX extends FunctionElementX { |
| 1253 SynthesizedConstructorElementX(Element enclosing) | 1253 SynthesizedConstructorElementX(Element enclosing) |
| 1254 : super(enclosing.name, ElementKind.GENERATIVE_CONSTRUCTOR, | 1254 : super(enclosing.name, ElementKind.GENERATIVE_CONSTRUCTOR, |
| 1255 Modifiers.EMPTY, enclosing); | 1255 Modifiers.EMPTY, enclosing); |
| 1256 | 1256 |
| 1257 SynthesizedConstructorElementX.forDefault(Element enclosing, | 1257 SynthesizedConstructorElementX.forDefault(Element enclosing, |
| 1258 Compiler compiler) | 1258 Compiler compiler) |
| 1259 : super(enclosing.name, ElementKind.GENERATIVE_CONSTRUCTOR, | 1259 : super(enclosing.name, ElementKind.GENERATIVE_CONSTRUCTOR, |
| 1260 Modifiers.EMPTY, enclosing) { | 1260 Modifiers.EMPTY, enclosing) { |
| 1261 type = new FunctionType( | 1261 type = new FunctionType(this, |
| 1262 compiler.types.voidType, | 1262 compiler.types.voidType, |
| 1263 const Link<DartType>(), | 1263 const Link<DartType>(), |
| 1264 this); | 1264 const Link<DartType>(), |
| 1265 const Link<SourceString>(), |
| 1266 const Link<DartType>()); |
| 1265 cachedNode = new FunctionExpression( | 1267 cachedNode = new FunctionExpression( |
| 1266 new Identifier(enclosing.position()), | 1268 new Identifier(enclosing.position()), |
| 1267 new NodeList.empty(), | 1269 new NodeList.empty(), |
| 1268 new Block(new NodeList.empty()), | 1270 new Block(new NodeList.empty()), |
| 1269 null, Modifiers.EMPTY, null, null); | 1271 null, Modifiers.EMPTY, null, null); |
| 1270 } | 1272 } |
| 1271 | 1273 |
| 1272 bool get isSynthesized => true; | 1274 bool get isSynthesized => true; |
| 1273 | 1275 |
| 1274 Token position() => enclosingElement.position(); | 1276 Token position() => enclosingElement.position(); |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 | 1970 |
| 1969 MetadataAnnotation ensureResolved(Compiler compiler) { | 1971 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1970 if (resolutionState == STATE_NOT_STARTED) { | 1972 if (resolutionState == STATE_NOT_STARTED) { |
| 1971 compiler.resolver.resolveMetadataAnnotation(this); | 1973 compiler.resolver.resolveMetadataAnnotation(this); |
| 1972 } | 1974 } |
| 1973 return this; | 1975 return this; |
| 1974 } | 1976 } |
| 1975 | 1977 |
| 1976 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1978 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1977 } | 1979 } |
| OLD | NEW |