| 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 #library('elements'); | 5 #library('elements'); |
| 6 | 6 |
| 7 #import('dart:uri'); | 7 #import('dart:uri'); |
| 8 | 8 |
| 9 #import('../tree/tree.dart'); | 9 #import('../tree/tree.dart'); |
| 10 #import('../scanner/scannerlib.dart'); | 10 #import('../scanner/scannerlib.dart'); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 final CompilationUnitElement compilationUnit; | 376 final CompilationUnitElement compilationUnit; |
| 377 | 377 |
| 378 CompilationUnitOverrideElement(CompilationUnitElement compilationUnit, | 378 CompilationUnitOverrideElement(CompilationUnitElement compilationUnit, |
| 379 Element enclosing) | 379 Element enclosing) |
| 380 : this.compilationUnit = compilationUnit, | 380 : this.compilationUnit = compilationUnit, |
| 381 super(compilationUnit.name, | 381 super(compilationUnit.name, |
| 382 ElementKind.COMPILATION_UNIT_OVERRIDE, | 382 ElementKind.COMPILATION_UNIT_OVERRIDE, |
| 383 enclosing); | 383 enclosing); |
| 384 | 384 |
| 385 CompilationUnitElement asCompilationUnit() => compilationUnit; | 385 CompilationUnitElement asCompilationUnit() => compilationUnit; |
| 386 |
| 387 CompilationUnitElement getCompilationUnit() => compilationUnit; |
| 386 } | 388 } |
| 387 | 389 |
| 388 class LibraryElement extends ScopeContainerElement { | 390 class LibraryElement extends ScopeContainerElement { |
| 389 CompilationUnitElement entryCompilationUnit; | 391 CompilationUnitElement entryCompilationUnit; |
| 390 Link<CompilationUnitElement> compilationUnits = | 392 Link<CompilationUnitElement> compilationUnits = |
| 391 const EmptyLink<CompilationUnitElement>(); | 393 const EmptyLink<CompilationUnitElement>(); |
| 392 | 394 |
| 393 Link<ScriptTag> tags = const EmptyLink<ScriptTag>(); | 395 Link<ScriptTag> tags = const EmptyLink<ScriptTag>(); |
| 394 ScriptTag libraryTag; | 396 ScriptTag libraryTag; |
| 395 bool canUseNative = false; | 397 bool canUseNative = false; |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 Node parseNode(compiler) => cachedNode; | 1427 Node parseNode(compiler) => cachedNode; |
| 1426 | 1428 |
| 1427 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; | 1429 String toString() => "${enclosingElement.toString()}.${name.slowToString()}"; |
| 1428 | 1430 |
| 1429 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { | 1431 TypeVariableElement cloneTo(Element enclosing, DiagnosticListener listener) { |
| 1430 TypeVariableElement result = | 1432 TypeVariableElement result = |
| 1431 new TypeVariableElement(name, enclosing, node, type, bound); | 1433 new TypeVariableElement(name, enclosing, node, type, bound); |
| 1432 return result; | 1434 return result; |
| 1433 } | 1435 } |
| 1434 } | 1436 } |
| OLD | NEW |