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

Unified Diff: pkg/analyzer/test/dart/element/builder_test.dart

Issue 2683543006: Make some parser test helper methods non-static. (Closed)
Patch Set: Created 3 years, 10 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/dart/ast/visitor_test.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/dart/element/builder_test.dart
diff --git a/pkg/analyzer/test/dart/element/builder_test.dart b/pkg/analyzer/test/dart/element/builder_test.dart
index b441823a52240c151aa7a055943dbcc9dec28f1a..ecbb202490568b8adf81e82bc918a13e6eba51ca 100644
--- a/pkg/analyzer/test/dart/element/builder_test.dart
+++ b/pkg/analyzer/test/dart/element/builder_test.dart
@@ -1030,7 +1030,7 @@ class LocalElementBuilderTest extends _BaseTest {
}
void test_buildLocalElements() {
- CompilationUnit unit = ParserTestCase.parseCompilationUnit(r'''
+ CompilationUnit unit = parseCompilationUnit(r'''
main() {
int v1;
f1() {
@@ -1074,7 +1074,7 @@ main() {
}
void test_buildParameterInitializer() {
- CompilationUnit unit = ParserTestCase.parseCompilationUnit('f({p: 42}) {}');
+ CompilationUnit unit = parseCompilationUnit('f({p: 42}) {}');
var function = unit.declarations.single as FunctionDeclaration;
var parameter = function.functionExpression.parameters.parameters.single
as DefaultFormalParameter;
@@ -1094,7 +1094,7 @@ main() {
}
void test_buildVariableInitializer() {
- CompilationUnit unit = ParserTestCase.parseCompilationUnit('var V = 42;');
+ CompilationUnit unit = parseCompilationUnit('var V = 42;');
TopLevelVariableDeclaration topLevelDecl =
unit.declarations[0] as TopLevelVariableDeclaration;
VariableDeclaration variable = topLevelDecl.variables.variables.single;
@@ -1114,7 +1114,7 @@ main() {
}
void test_visitDefaultFormalParameter_local() {
- CompilationUnit unit = ParserTestCase.parseCompilationUnit('''
+ CompilationUnit unit = parseCompilationUnit('''
main() {
f({bool b: false}) {}
}
@@ -2538,7 +2538,7 @@ class A {
}
}
-abstract class _BaseTest {
+abstract class _BaseTest extends ParserTestCase {
CompilationUnitElement compilationUnitElement;
CompilationUnit _compilationUnit;
@@ -2619,7 +2619,7 @@ abstract class _BaseTest {
TestLogger logger = new TestLogger();
AnalysisEngine.instance.logger = logger;
try {
- _compilationUnit = ParserTestCase.parseCompilationUnit(code);
+ _compilationUnit = parseCompilationUnit(code);
compilationUnit.accept(visitor);
} finally {
expect(logger.log, hasLength(0));
« no previous file with comments | « pkg/analyzer/test/dart/ast/visitor_test.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698