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

Unified Diff: runtime/vm/scanner.cc

Issue 17621003: Remove --disable_privacy (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | tests/language/disable_privacy_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scanner.cc
diff --git a/runtime/vm/scanner.cc b/runtime/vm/scanner.cc
index 896142c8ff6d5a4ab443a62d7b79f65fe63efe20..e41e605e9f450c6d04727bc91592c65b708ad077 100644
--- a/runtime/vm/scanner.cc
+++ b/runtime/vm/scanner.cc
@@ -15,7 +15,6 @@
namespace dart {
-DEFINE_FLAG(bool, disable_privacy, false, "Disable library privacy.");
DEFINE_FLAG(bool, print_tokens, false, "Print scanned tokens.");
void Scanner::InitKeywordTable() {
@@ -328,7 +327,7 @@ void Scanner::ScanIdentChars(bool allow_dollar) {
current_token_.kind = Token::kIDENT;
String& literal =
String::ZoneHandle(Symbols::New(source_, ident_pos, ident_length));
- if ((ident_char0 == kPrivateIdentifierStart) && !FLAG_disable_privacy) {
+ if (ident_char0 == kPrivateIdentifierStart) {
// Private identifiers are mangled on a per script basis.
literal = String::Concat(literal, private_key_);
literal = Symbols::New(literal);
« no previous file with comments | « no previous file | tests/language/disable_privacy_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698