| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of resolution; | 5 part of resolution; |
| 6 | 6 |
| 7 abstract class TreeElements { | 7 abstract class TreeElements { |
| 8 Element get currentElement; | 8 Element get currentElement; |
| 9 Setlet<Node> get superUses; | 9 Setlet<Node> get superUses; |
| 10 | 10 |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 return measure(() => SignatureResolver.analyze( | 1294 return measure(() => SignatureResolver.analyze( |
| 1295 compiler, node.parameters, node.returnType, element, | 1295 compiler, node.parameters, node.returnType, element, |
| 1296 new ResolutionRegistry(compiler, element), | 1296 new ResolutionRegistry(compiler, element), |
| 1297 defaultValuesError: defaultValuesError, | 1297 defaultValuesError: defaultValuesError, |
| 1298 createRealParameters: true)); | 1298 createRealParameters: true)); |
| 1299 }); | 1299 }); |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 TreeElements resolveTypedef(TypedefElementX element) { | 1302 TreeElements resolveTypedef(TypedefElementX element) { |
| 1303 if (element.isResolved) return element.treeElements; | 1303 if (element.isResolved) return element.treeElements; |
| 1304 compiler.world.allTypedefs.add(element); |
| 1304 return _resolveTypeDeclaration(element, () { | 1305 return _resolveTypeDeclaration(element, () { |
| 1305 ResolutionRegistry registry = new ResolutionRegistry(compiler, element); | 1306 ResolutionRegistry registry = new ResolutionRegistry(compiler, element); |
| 1306 return compiler.withCurrentElement(element, () { | 1307 return compiler.withCurrentElement(element, () { |
| 1307 return measure(() { | 1308 return measure(() { |
| 1308 assert(element.resolutionState == STATE_NOT_STARTED); | 1309 assert(element.resolutionState == STATE_NOT_STARTED); |
| 1309 element.resolutionState = STATE_STARTED; | 1310 element.resolutionState = STATE_STARTED; |
| 1310 Typedef node = | 1311 Typedef node = |
| 1311 compiler.parser.measure(() => element.parseNode(compiler)); | 1312 compiler.parser.measure(() => element.parseNode(compiler)); |
| 1312 TypedefResolverVisitor visitor = | 1313 TypedefResolverVisitor visitor = |
| 1313 new TypedefResolverVisitor(compiler, element, registry); | 1314 new TypedefResolverVisitor(compiler, element, registry); |
| (...skipping 3551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4865 } | 4866 } |
| 4866 | 4867 |
| 4867 /// The result for the resolution of the `assert` method. | 4868 /// The result for the resolution of the `assert` method. |
| 4868 class AssertResult implements ResolutionResult { | 4869 class AssertResult implements ResolutionResult { |
| 4869 const AssertResult(); | 4870 const AssertResult(); |
| 4870 | 4871 |
| 4871 Element get element => null; | 4872 Element get element => null; |
| 4872 | 4873 |
| 4873 String toString() => 'AssertResult()'; | 4874 String toString() => 'AssertResult()'; |
| 4874 } | 4875 } |
| OLD | NEW |