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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/script.dart

Issue 21544003: Handle missing imports/exports/parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add example to warning. Created 7 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 dart2js; 5 part of dart2js;
6 6
7 class Script { 7 class Script {
8 // TODO(kasperl): Once MockFile in tests/compiler/dart2js/parser_helper.dart 8 final SourceFile file;
9 // implements SourceFile, we should be able to type the [file] field as
10 // such.
11 final file;
12 9
13 /** 10 /**
14 * The readable URI from which this script was loaded. 11 * The readable URI from which this script was loaded.
15 * 12 *
16 * See [LibraryLoader] for terminology on URIs. 13 * See [LibraryLoader] for terminology on URIs.
17 */ 14 */
18 final Uri uri; 15 final Uri uri;
19 16
20 Script(this.uri, this.file); 17 Script(this.uri, this.file);
21 18
22 String get text => (file == null) ? null : file.text; 19 String get text => (file == null) ? null : file.text;
23 String get name => (file == null) ? null : file.filename; 20 String get name => (file == null) ? null : file.filename;
24 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698