Index: tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart |
diff --git a/tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart b/tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart |
index 5382a29c309993ed6ade13d81cb69f398ffb529f..a5e4e20c5700b8aa1e2de6a07b00a1373cb98058 100644 |
--- a/tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart |
+++ b/tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart |
@@ -236,7 +236,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
arg) { |
visits.add(new Visit(VisitKind.VISIT_OPTIONAL_PARAMETER_DECL, |
element: parameter, |
- constant: defaultValue != null ? defaultValue.getText() : null, |
+ constant: defaultValue != null ? defaultValue.toDartText() : null, |
index: index)); |
} |
@@ -284,7 +284,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
ConstantExpression constant, |
arg) { |
visits.add(new Visit(VisitKind.VISIT_LOCAL_CONSTANT_DECL, |
- element: variable, constant: constant.getText())); |
+ element: variable, constant: constant.toDartText())); |
} |
@override |
@@ -296,7 +296,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
arg) { |
visits.add(new Visit(VisitKind.VISIT_NAMED_INITIALIZING_FORMAL_DECL, |
element: initializingFormal, |
- constant: defaultValue != null ? defaultValue.getText() : null)); |
+ constant: defaultValue != null ? defaultValue.toDartText() : null)); |
} |
@override |
@@ -308,7 +308,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
arg) { |
visits.add(new Visit(VisitKind.VISIT_NAMED_PARAMETER_DECL, |
element: parameter, |
- constant: defaultValue != null ? defaultValue.getText() : null)); |
+ constant: defaultValue != null ? defaultValue.toDartText() : null)); |
} |
@override |
@@ -321,7 +321,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
arg) { |
visits.add(new Visit(VisitKind.VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, |
element: initializingFormal, |
- constant: defaultValue != null ? defaultValue.getText() : null, |
+ constant: defaultValue != null ? defaultValue.toDartText() : null, |
index: index)); |
} |
@@ -347,7 +347,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
ConstantExpression constant, |
arg) { |
visits.add(new Visit(VisitKind.VISIT_STATIC_CONSTANT_DECL, |
- element: field, constant: constant.getText())); |
+ element: field, constant: constant.toDartText())); |
} |
@override |
@@ -372,7 +372,7 @@ class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
ConstantExpression constant, |
arg) { |
visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_CONSTANT_DECL, |
- element: field, constant: constant.getText())); |
+ element: field, constant: constant.toDartText())); |
} |
@override |