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

Unified Diff: tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 8 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
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
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698