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

Unified Diff: pkg/analyzer/test/src/dart/constant/evaluation_test.dart

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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: pkg/analyzer/test/src/dart/constant/evaluation_test.dart
diff --git a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
index 45b29869d250f72530cad579a7d5fc7171aed037..c74db16b8675dbead08c753d6039d26a5b4476ee 100644
--- a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
+++ b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
@@ -316,16 +316,12 @@ const int a = 0;''');
}
test_computeValues_multipleSources() async {
- Source librarySource = addNamedSource(
- "/lib.dart",
- r'''
+ Source librarySource = addNamedSource("/lib.dart", r'''
library lib;
part 'part.dart';
const int c = b;
const int a = 0;''');
- Source partSource = addNamedSource(
- "/part.dart",
- r'''
+ Source partSource = addNamedSource("/part.dart", r'''
part of lib;
const int b = a;
const int d = c;''');
@@ -405,8 +401,7 @@ const A y = const A(x);''');
test_dependencyOnConstructorArgument_unresolvedConstructor() async {
// "const A.a(x)" depends on x even if the constructor A.a can't be found.
- await _assertProperDependencies(
- r'''
+ await _assertProperDependencies(r'''
class A {
}
const int x = 1;
@@ -503,15 +498,13 @@ const A a = const A();
// Even though non-static consts are not allowed by the language, we need
// to handle them for error recovery purposes.
// a depends on A() depends on A.x
- await _assertProperDependencies(
- '''
+ await _assertProperDependencies('''
class A {
const A();
const int x = 1;
}
const A a = const A();
-''',
- [CompileTimeErrorCode.CONST_INSTANCE_FIELD]);
+''', [CompileTimeErrorCode.CONST_INSTANCE_FIELD]);
}
test_dependencyOnNonFactoryRedirect() async {
@@ -551,13 +544,11 @@ class A {
test_dependencyOnNonFactoryRedirect_toMissing() async {
// a depends on A.foo() which depends on nothing, since A.bar() is
// missing.
- await _assertProperDependencies(
- r'''
+ await _assertProperDependencies(r'''
const A a = const A.foo();
class A {
const A.foo() : this.bar();
-}''',
- [CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR]);
+}''', [CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR]);
}
test_dependencyOnNonFactoryRedirect_toNonConst() async {
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/search_test.dart ('k') | pkg/analyzer/test/src/dart/element/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698