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

Unified Diff: pkg/analyzer/lib/src/generated/testing/test_type_provider.dart

Issue 2524903002: Rename AstFactory -> AstTestFactory. (Closed)
Patch Set: Created 4 years, 1 month 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/lib/src/generated/testing/test_type_provider.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/test_type_provider.dart b/pkg/analyzer/lib/src/generated/testing/test_type_provider.dart
index 5e4e43da22e69c4ac190c2f643365895900be7c9..953dcee3f328390123eddd88dc53f1f46688ebf7 100644
--- a/pkg/analyzer/lib/src/generated/testing/test_type_provider.dart
+++ b/pkg/analyzer/lib/src/generated/testing/test_type_provider.dart
@@ -15,7 +15,7 @@ import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
import 'package:analyzer/src/generated/resolver.dart';
import 'package:analyzer/src/generated/sdk.dart' show DartSdk;
import 'package:analyzer/src/generated/source.dart' show Source;
-import 'package:analyzer/src/generated/testing/ast_factory.dart';
+import 'package:analyzer/src/generated/testing/ast_test_factory.dart';
import 'package:analyzer/src/generated/testing/element_factory.dart';
/**
@@ -172,7 +172,7 @@ class TestTypeProvider extends TypeProviderBase {
ElementFactory.requiredParameter2("name", stringType),
ElementFactory.namedParameter3("defaultValue",
type: _boolType,
- initializer: AstFactory.booleanLiteral(false),
+ initializer: AstTestFactory.booleanLiteral(false),
initializerCode: 'false')
];
fromEnvironment.factory = true;
@@ -205,8 +205,8 @@ class TestTypeProvider extends TypeProviderBase {
.constructorElement(deprecatedElement, '', true, [stringType]);
(constructor.parameters[0] as ParameterElementImpl).name = 'expires';
ConstructorFieldInitializer expiresInit =
- AstFactory.constructorFieldInitializer(
- true, 'expires', AstFactory.identifier3('expires'));
+ AstTestFactory.constructorFieldInitializer(
+ true, 'expires', AstTestFactory.identifier3('expires'));
expiresInit.fieldName.staticElement = expiresField;
(expiresInit.expression as SimpleIdentifier).staticElement =
constructor.parameters[0];
@@ -269,7 +269,7 @@ class TestTypeProvider extends TypeProviderBase {
CompilationUnitElementImpl asyncUnit =
new CompilationUnitElementImpl("async.dart");
LibraryElementImpl asyncLibrary = new LibraryElementImpl.forNode(
- _context, AstFactory.libraryIdentifier2(["dart.async"]));
+ _context, AstTestFactory.libraryIdentifier2(["dart.async"]));
asyncLibrary.definingCompilationUnit = asyncUnit;
asyncUnit.librarySource = asyncUnit.source = asyncSource;
@@ -620,21 +620,21 @@ class TestTypeProvider extends TypeProviderBase {
];
ConstFieldElementImpl varINFINITY = ElementFactory.fieldElement(
"INFINITY", true, false, true, _doubleType,
- initializer: AstFactory.doubleLiteral(double.INFINITY));
- varINFINITY.constantInitializer = AstFactory.binaryExpression(
- AstFactory.integer(1), TokenType.SLASH, AstFactory.integer(0));
+ initializer: AstTestFactory.doubleLiteral(double.INFINITY));
+ varINFINITY.constantInitializer = AstTestFactory.binaryExpression(
+ AstTestFactory.integer(1), TokenType.SLASH, AstTestFactory.integer(0));
List<FieldElement> fields = <FieldElement>[
ElementFactory.fieldElement("NAN", true, false, true, _doubleType,
- initializer: AstFactory.doubleLiteral(double.NAN)),
+ initializer: AstTestFactory.doubleLiteral(double.NAN)),
varINFINITY,
ElementFactory.fieldElement(
"NEGATIVE_INFINITY", true, false, true, _doubleType,
- initializer: AstFactory.doubleLiteral(double.NEGATIVE_INFINITY)),
+ initializer: AstTestFactory.doubleLiteral(double.NEGATIVE_INFINITY)),
ElementFactory.fieldElement(
"MIN_POSITIVE", true, false, true, _doubleType,
- initializer: AstFactory.doubleLiteral(double.MIN_POSITIVE)),
+ initializer: AstTestFactory.doubleLiteral(double.MIN_POSITIVE)),
ElementFactory.fieldElement("MAX_FINITE", true, false, true, _doubleType,
- initializer: AstFactory.doubleLiteral(double.MAX_FINITE))
+ initializer: AstTestFactory.doubleLiteral(double.MAX_FINITE))
];
doubleElement.fields = fields;
int fieldCount = fields.length;
« no previous file with comments | « pkg/analyzer/lib/src/generated/testing/element_factory.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698