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

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

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
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 class Script { 5 class Script {
6 // TODO(kasperl): Once MockFile in tests/compiler/dart2js/parser_helper.dart 6 // TODO(kasperl): Once MockFile in tests/compiler/dart2js/parser_helper.dart
7 // implements SourceFile, we should be able to type the [file] field as 7 // implements SourceFile, we should be able to type the [file] field as
8 // such. 8 // such.
9 final file; 9 final file;
10 final Uri uri; 10 final Uri uri;
11 Script(this.uri, this.file); 11 Script(this.uri, this.file);
12 12
13 String get text() => (file === null) ? null : file.text; 13 String get text => (file === null) ? null : file.text;
14 String get name() => (file === null) ? null : file.filename; 14 String get name => (file === null) ? null : file.filename;
15 } 15 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/scanner/token.dart ('k') | dart/lib/compiler/implementation/source_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698