Files
sdk/lib/compiler/implementation/script.dart
T
kasperl@google.com da29bdcace Remove frog dependencies from lib/compiler.
Start importing the URI library using dart:uri rather than
dotting our way to the right directory in lib.

R=ahe@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10081004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6511 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:05:45 +00:00

16 lines
579 B
Dart

// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Script {
// TODO(kasperl): Once MockFile in frog/tests/leg/src/parser_helper.dart
// implements SourceFile, we should be able to type the [file] field as
// such.
final file;
final Uri uri;
Script(this.uri, this.file);
String get text() => (file === null) ? null : file.text;
String get name() => (file === null) ? null : file.filename;
}