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

Side by Side Diff: dart/lib/compiler/implementation/scanner/scanner_task.dart

Issue 11066055: Update types to unbreak build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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
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 class ScannerTask extends CompilerTask { 5 class ScannerTask extends CompilerTask {
6 ScannerTask(Compiler compiler) : super(compiler); 6 ScannerTask(Compiler compiler) : super(compiler);
7 String get name => 'Scanner'; 7 String get name => 'Scanner';
8 8
9 void scanLibrary(LibraryElement library) { 9 void scanLibrary(LibraryElement library) {
10 var compilationUnit = library.entryCompilationUnit; 10 var compilationUnit = library.entryCompilationUnit;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 for (Import tag in imports.toLink()) { 80 for (Import tag in imports.toLink()) {
81 importLibraryFromTag(tag, library.entryCompilationUnit); 81 importLibraryFromTag(tag, library.entryCompilationUnit);
82 } 82 }
83 } 83 }
84 84
85 /** 85 /**
86 * Handle a part tag in the scope of [library]. The [path] given is used as 86 * Handle a part tag in the scope of [library]. The [path] given is used as
87 * is, any resolution should be done beforehand. 87 * is, any resolution should be done beforehand.
88 */ 88 */
89 void loadPart(Part part, Uri path, LibraryElement library) { 89 void loadPart(Part part, Uri path, LibraryElement library) {
90 Script sourceScript = compiler.readScript(path, part); 90 Script sourceScript = compiler.readScript(path, part.uri);
91 CompilationUnitElement unit = 91 CompilationUnitElement unit =
92 new CompilationUnitElement(sourceScript, library); 92 new CompilationUnitElement(sourceScript, library);
93 compiler.withCurrentElement(unit, () => compiler.scanner.scan(unit)); 93 compiler.withCurrentElement(unit, () => compiler.scanner.scan(unit));
94 } 94 }
95 95
96 /** 96 /**
97 * Handle an import script tag by importing the referenced library into the 97 * Handle an import script tag by importing the referenced library into the
98 * current library. 98 * current library.
99 * Returns the resolved library [Uri]. 99 * Returns the resolved library [Uri].
100 */ 100 */
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 static const int RESOURCE = 4; 218 static const int RESOURCE = 4;
219 219
220 /** Next state. */ 220 /** Next state. */
221 static const List<int> NEXT = 221 static const List<int> NEXT =
222 const <int>[NO_TAG_SEEN, 222 const <int>[NO_TAG_SEEN,
223 IMPORT, // Only one library tag is allowed. 223 IMPORT, // Only one library tag is allowed.
224 IMPORT, 224 IMPORT,
225 SOURCE, 225 SOURCE,
226 RESOURCE]; 226 RESOURCE];
227 } 227 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/compiler.dart ('k') | dart/lib/compiler/implementation/tools/mini_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698