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

Unified Diff: dart/frog/leg/scanner/string_scanner.dart

Issue 9689045: Library privacy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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/frog/leg/scanner/string_scanner.dart
diff --git a/dart/frog/leg/scanner/string_scanner.dart b/dart/frog/leg/scanner/string_scanner.dart
index 6778f5f8f47f9bc85744d15af4dc75f47b977540..2f295abf39edb08f4315e72072c2f51e8a3519f4 100644
--- a/dart/frog/leg/scanner/string_scanner.dart
+++ b/dart/frog/leg/scanner/string_scanner.dart
@@ -69,4 +69,6 @@ class SubstringWrapper implements SourceString {
}
bool isEmpty() => begin == end;
+
+ bool isPrivate() => !isEmpty() && internalString.charCodeAt(begin) === $_;
}

Powered by Google App Engine
This is Rietveld 408576698