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

Unified Diff: sdk/lib/_internal/compiler/implementation/js/printer.dart

Issue 11415199: Rename regexp to reflect review feedback on semicolon change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js/printer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js/printer.dart b/sdk/lib/_internal/compiler/implementation/js/printer.dart
index e29f7bb489290ded16df154daa433aab8f2e74b2..ce2e056f35f72be634bac2bd774c91bfe86391db 100644
--- a/sdk/lib/_internal/compiler/implementation/js/printer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js/printer.dart
@@ -15,7 +15,7 @@ class Printer implements NodeVisitor {
final Namer namer;
bool pendingSemicolon = false;
bool pendingSpace = false;
- static final identifierRegexp = new RegExp(r'^[a-zA-Z_0-9$]');
+ static final identifierCharacterRegExp = new RegExp(r'^[a-zA-Z_0-9$]');
Printer(leg.Compiler compiler, { allowVariableMinification: true })
: shouldCompressOutput = compiler.enableMinification,
@@ -51,7 +51,7 @@ class Printer implements NodeVisitor {
outBuffer.add(";");
}
if (pendingSpace &&
- (!shouldCompressOutput || identifierRegexp.hasMatch(str))) {
+ (!shouldCompressOutput || identifierCharacterRegExp.hasMatch(str))) {
outBuffer.add(" ");
}
pendingSpace = false;
« 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