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

Unified Diff: dart/lib/compiler/implementation/scanner/token.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 side-by-side diff with in-line comments
Download patch
Index: dart/lib/compiler/implementation/scanner/token.dart
diff --git a/dart/lib/compiler/implementation/scanner/token.dart b/dart/lib/compiler/implementation/scanner/token.dart
index 2fb0d6df0d26e3ffb0d273928b4da561d12482b2..53576182aa4da9f8939363ca520dd207b8f6c494 100644
--- a/dart/lib/compiler/implementation/scanner/token.dart
+++ b/dart/lib/compiler/implementation/scanner/token.dart
@@ -102,7 +102,7 @@ class Token {
Token(PrecedenceInfo this.info, int this.charOffset);
- get value() => info.value;
+ get value => info.value;
/**
* Returns the string value for keywords and symbols. For instance 'class' for
@@ -112,17 +112,17 @@ class Token {
*
* [stringValue] should only be used for testing keywords and symbols.
*/
- String get stringValue() => info.value.stringValue;
+ String get stringValue => info.value.stringValue;
/**
* The kind enum of this token as determined by its [info].
*/
- int get kind() => info.kind;
+ int get kind => info.kind;
/**
* The precedence level for this token.
*/
- int get precedence() => info.precedence;
+ int get precedence => info.precedence;
/**
* Returns a textual representation of this token to be used for debugging
@@ -140,7 +140,7 @@ class Token {
/**
* The number of characters parsed by this token.
*/
- int get slowCharCount() => slowToString().length;
+ int get slowCharCount => slowToString().length;
}
/**
@@ -148,7 +148,7 @@ class Token {
*/
class KeywordToken extends Token {
final Keyword value;
- String get stringValue() => value.syntax;
+ String get stringValue => value.syntax;
KeywordToken(Keyword value, int charOffset)
: this.value = value, super(value.info, charOffset);
@@ -161,7 +161,7 @@ class KeywordToken extends Token {
*/
class StringToken extends Token {
final SourceString value;
- String get stringValue() => value.stringValue;
+ String get stringValue => value.stringValue;
StringToken(PrecedenceInfo info, String value, int charOffset)
: this.fromSource(info, new SourceString(value), charOffset);
« no previous file with comments | « dart/lib/compiler/implementation/scanner/string_scanner.dart ('k') | dart/lib/compiler/implementation/script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698