| 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 import 'common/names.dart' show Identifiers; | 5 import 'common/names.dart' show Identifiers; |
| 6 import 'common/resolution.dart' show ParsingContext, Resolution; | 6 import 'common/resolution.dart' show ParsingContext, Resolution; |
| 7 import 'common/tasks.dart' show CompilerTask, Measurer; | 7 import 'common/tasks.dart' show CompilerTask, Measurer; |
| 8 import 'common.dart'; | 8 import 'common.dart'; |
| 9 import 'compiler.dart' show Compiler; | 9 import 'compiler.dart' show Compiler; |
| 10 import 'constants/expressions.dart'; | 10 import 'constants/expressions.dart'; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 398 |
| 399 @override | 399 @override |
| 400 Local get declaredEntity => local; | 400 Local get declaredEntity => local; |
| 401 | 401 |
| 402 @override | 402 @override |
| 403 Entity get rootOfScope => closureClass; | 403 Entity get rootOfScope => closureClass; |
| 404 | 404 |
| 405 bool get hasNode => false; | 405 bool get hasNode => false; |
| 406 | 406 |
| 407 VariableDefinitions get node { | 407 VariableDefinitions get node { |
| 408 throw new SpannableAssertionFailure( | 408 throw failedAt(local, 'Should not access node of ClosureFieldElement.'); |
| 409 local, 'Should not access node of ClosureFieldElement.'); | |
| 410 } | 409 } |
| 411 | 410 |
| 412 bool get hasResolvedAst => hasTreeElements; | 411 bool get hasResolvedAst => hasTreeElements; |
| 413 | 412 |
| 414 ResolvedAst get resolvedAst { | 413 ResolvedAst get resolvedAst { |
| 415 return new ParsedResolvedAst(this, null, null, treeElements, | 414 return new ParsedResolvedAst(this, null, null, treeElements, |
| 416 memberContext.compilationUnit.script.resourceUri); | 415 memberContext.compilationUnit.script.resourceUri); |
| 417 } | 416 } |
| 418 | 417 |
| 419 Expression get initializer { | 418 Expression get initializer { |
| 420 throw new SpannableAssertionFailure( | 419 throw failedAt( |
| 421 local, 'Should not access initializer of ClosureFieldElement.'); | 420 local, 'Should not access initializer of ClosureFieldElement.'); |
| 422 } | 421 } |
| 423 | 422 |
| 424 bool get isInstanceMember => true; | 423 bool get isInstanceMember => true; |
| 425 bool get isAssignable => false; | 424 bool get isAssignable => false; |
| 426 | 425 |
| 427 ResolutionDartType computeType(Resolution resolution) => type; | 426 ResolutionDartType computeType(Resolution resolution) => type; |
| 428 | 427 |
| 429 ResolutionDartType get type { | 428 ResolutionDartType get type { |
| 430 if (local is LocalElement) { | 429 if (local is LocalElement) { |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 /// | 1539 /// |
| 1541 /// Move the below classes to a JS model eventually. | 1540 /// Move the below classes to a JS model eventually. |
| 1542 /// | 1541 /// |
| 1543 abstract class JSEntity implements MemberEntity { | 1542 abstract class JSEntity implements MemberEntity { |
| 1544 Local get declaredEntity; | 1543 Local get declaredEntity; |
| 1545 } | 1544 } |
| 1546 | 1545 |
| 1547 abstract class PrivatelyNamedJSEntity implements JSEntity { | 1546 abstract class PrivatelyNamedJSEntity implements JSEntity { |
| 1548 Entity get rootOfScope; | 1547 Entity get rootOfScope; |
| 1549 } | 1548 } |
| OLD | NEW |