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

Unified Diff: vm/scanner.cc

Issue 9594040: - Reintroduce a library privacy disabling option. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/scanner.cc
===================================================================
--- vm/scanner.cc (revision 4985)
+++ vm/scanner.cc (working copy)
@@ -13,6 +13,7 @@
namespace dart {
+DEFINE_FLAG(bool, disable_privacy, false, "Disable library privacy.");
DEFINE_FLAG(bool, print_tokens, false, "Print scanned tokens.");
void Scanner::InitKeywordTable() {
@@ -290,7 +291,7 @@
current_token_.kind = Token::kIDENT;
String& literal =
String::ZoneHandle(String::NewSymbol(source_, ident_pos, ident_length));
- if (ident_char0 == kPrivateIdentifierStart) {
+ if ((ident_char0 == kPrivateIdentifierStart) && !FLAG_disable_privacy) {
// Private identifiers are mangled on a per script basis.
literal = String::Concat(literal, private_key_);
literal = String::NewSymbol(literal);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698