Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: lib/compiler/implementation/elements/elements.dart

Issue 10826302: Fix bugs found in checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698