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

Unified Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 1309543011: Add support for assert statements with messages to the analyzer. Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments. Created 5 years, 3 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 | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/utilities_test.dart
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
index 24263e726e1c70fa6f4f2a9f3baad6b49c87f88b..9798774588d67f44e54d0cd6489158f1a15c66e6 100644
--- a/pkg/analyzer/test/generated/utilities_test.dart
+++ b/pkg/analyzer/test/generated/utilities_test.dart
@@ -2109,6 +2109,12 @@ class Getter_NodeReplacerTest_test_assertStatement
Expression get(AssertStatement node) => node.condition;
}
+class Getter_NodeReplacerTest_test_assertStatement_2
+ implements NodeReplacerTest_Getter {
+ @override
+ Expression get(AssertStatement node) => node.message;
+}
+
class Getter_NodeReplacerTest_test_assignmentExpression
implements NodeReplacerTest_Getter {
@override
@@ -3460,9 +3466,10 @@ class NodeReplacerTest extends EngineTestCase {
}
void test_assertStatement() {
- AssertStatement node =
- AstFactory.assertStatement(AstFactory.booleanLiteral(true));
+ AssertStatement node = AstFactory.assertStatement(
+ AstFactory.booleanLiteral(true), AstFactory.string2('foo'));
_assertReplace(node, new Getter_NodeReplacerTest_test_assertStatement());
+ _assertReplace(node, new Getter_NodeReplacerTest_test_assertStatement_2());
}
void test_assignmentExpression() {
« no previous file with comments | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698