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

Unified Diff: lib/compiler/implementation/scanner/byte_strings.dart

Issue 10001008: Many type fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: lib/compiler/implementation/scanner/byte_strings.dart
diff --git a/lib/compiler/implementation/scanner/byte_strings.dart b/lib/compiler/implementation/scanner/byte_strings.dart
index e6daab14eda03bc13210f2d1de1598bbc50ac29c..c9b18d0c83217775d85059563f49435ad4c57b26 100644
--- a/lib/compiler/implementation/scanner/byte_strings.dart
+++ b/lib/compiler/implementation/scanner/byte_strings.dart
@@ -47,6 +47,9 @@ class ByteString implements SourceString {
}
bool isEmpty() => length == 0;
+ bool isPrivate() => !isEmpty() && bytes[offset] === $_;
+
+ String get stringValue() => null;
kasperl 2012/04/16 13:10:46 This seems broken. Why is the string value null?
floitsch 2012/04/16 13:57:57 Peter asked me to return null.
ahe 2012/04/16 15:02:28 Which is the correct thing to do. This method only
}
/**

Powered by Google App Engine
This is Rietveld 408576698