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

Unified Diff: tests/compiler/dart2js/semantic_visitor_test_send_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
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
diff --git a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
index 2187ba826aa5cfa308b5756e73e21e6c51ac8e54..9ded3ea717ede5b5581a8b6d478400e8b7363e60 100644
--- a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
+++ b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
@@ -244,7 +244,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
ConstantExpression constant,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_GET,
- constant: constant.getText()));
+ constant: constant.toDartText()));
}
@override
@@ -255,7 +255,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
CallStructure callStructure,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_INVOKE,
- constant: constant.getText(), arguments: arguments));
+ constant: constant.toDartText(), arguments: arguments));
apply(arguments, arg);
}
@@ -266,7 +266,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitClassTypeLiteralSet(node, constant, rhs, arg);
}
@@ -347,7 +347,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
ConstantExpression constant,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET,
- constant: constant.getText()));
+ constant: constant.toDartText()));
}
@override
@@ -358,7 +358,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
CallStructure callStructure,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_INVOKE,
- constant: constant.getText(), arguments: arguments));
+ constant: constant.toDartText(), arguments: arguments));
}
@override
@@ -368,7 +368,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitDynamicTypeLiteralSet(node, constant, rhs, arg);
}
@@ -1009,7 +1009,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
ConstantExpression constant,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_GET,
- constant: constant.getText()));
+ constant: constant.toDartText()));
}
@override
@@ -1020,7 +1020,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
CallStructure callStructure,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_INVOKE,
- constant: constant.getText(), arguments: arguments));
+ constant: constant.toDartText(), arguments: arguments));
apply(arguments, arg);
}
@@ -1031,7 +1031,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitTypedefTypeLiteralSet(node, constant, rhs, arg);
}
@@ -1767,7 +1767,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_COMPOUND,
- constant: constant.getText(), operator: operator, rhs: rhs));
+ constant: constant.toDartText(), operator: operator, rhs: rhs));
apply(rhs, arg);
}
@@ -1779,7 +1779,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_COMPOUND,
- constant: constant.getText(), operator: operator, rhs: rhs));
+ constant: constant.toDartText(), operator: operator, rhs: rhs));
apply(rhs, arg);
}
@@ -1803,7 +1803,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_COMPOUND,
- constant: constant.getText(), operator: operator, rhs: rhs));
+ constant: constant.toDartText(), operator: operator, rhs: rhs));
apply(rhs, arg);
}
@@ -1824,7 +1824,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_PREFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -1834,7 +1834,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_PREFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -2037,7 +2037,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_PREFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -2057,7 +2057,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_POSTFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -2067,7 +2067,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_POSTFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -2257,7 +2257,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
IncDecOperator operator,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_POSTFIX,
- constant: constant.getText(), operator: operator));
+ constant: constant.toDartText(), operator: operator));
}
@override
@@ -2549,7 +2549,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
ConstructedConstantExpression constant,
arg) {
visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitConstConstructorInvoke(node, constant, arg);
}
@@ -2560,7 +2560,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
arg) {
visits.add(new Visit(
VisitKind.VISIT_BOOL_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitBoolFromEnvironmentConstructorInvoke(node, constant, arg);
}
@@ -2571,7 +2571,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
arg) {
visits.add(new Visit(
VisitKind.VISIT_INT_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitIntFromEnvironmentConstructorInvoke(node, constant, arg);
}
@@ -2582,7 +2582,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
arg) {
visits.add(new Visit(
VisitKind.VISIT_STRING_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitStringFromEnvironmentConstructorInvoke(node, constant, arg);
}
@@ -3086,7 +3086,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
ConstantExpression constant,
arg) {
visits.add(new Visit(VisitKind.VISIT_CONSTANT_GET,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitConstantGet(node, constant, arg);
}
@@ -3098,7 +3098,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
CallStructure callStructure,
arg) {
visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE,
- constant: constant.getText()));
+ constant: constant.toDartText()));
super.visitConstantInvoke(node, constant, arguments, callStructure, arg);
}
@@ -3117,7 +3117,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_CLASS_TYPE_LITERAL_SET_IF_NULL,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitClassTypeLiteralSetIfNull(node, constant, rhs, arg);
}
@@ -3140,7 +3140,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET_IF_NULL,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitDynamicTypeLiteralSetIfNull(node, constant, rhs, arg);
}
@@ -3450,7 +3450,7 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
Node rhs,
arg) {
visits.add(new Visit(VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET_IF_NULL,
- constant: constant.getText(), rhs: rhs));
+ constant: constant.toDartText(), rhs: rhs));
super.visitTypedefTypeLiteralSetIfNull(node, constant, rhs, arg);
}
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698