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

Unified Diff: frog/library.dart

Issue 9121025: cleanup to Value - fix for StringEscapesTest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « frog/lib/corelib.dart ('k') | frog/member.dart » ('j') | frog/member.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/library.dart
diff --git a/frog/library.dart b/frog/library.dart
index 30b7e63ea97762101d1613ae0b2e09bcbd005c43..1276ebbca7bd33e79aa40d1ff38b11342a730077 100644
--- a/frog/library.dart
+++ b/frog/library.dart
@@ -462,10 +462,10 @@ class _LibraryVisitor implements TreeVisitor {
String _parseStringArgument(ArgumentNode arg) {
var expr = arg.value;
- if (expr is! LiteralExpression || !expr.type.type.isString) {
- world.error('expected string', expr.span);
+ if (expr is! LiteralExpression || !expr.value.type.isString) {
+ world.error('expected string literal', expr.span);
}
- return parseStringLiteral(expr.value);
+ return expr.value.actualValue;
}
void visitTypeDefinition(TypeDefinition node) {
« no previous file with comments | « frog/lib/corelib.dart ('k') | frog/member.dart » ('j') | frog/member.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698