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

Unified Diff: lib/src/js/nodes.dart

Issue 1133593004: fixes #131, use before define from variables to classes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 | « lib/src/dependency_graph.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 6e80fb2fc7c719dc899cb262eeea3129d4c3e8ba..edad282582a57ecb9f196b444fd4e11ef46b39c7 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -1080,6 +1080,9 @@ class LiteralString extends Literal {
*/
LiteralString(this.value);
+ /// Gets the value inside the string without the beginning and end quotes.
+ String get valueWithoutQuotes => value.substring(1, value.length - 1);
+
accept(NodeVisitor visitor) => visitor.visitLiteralString(this);
LiteralString _clone() => new LiteralString(value);
}
« no previous file with comments | « lib/src/dependency_graph.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698