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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart

Issue 2904673003: Remove AstFactory from the front end. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.kernel_enum_builder; 5 library fasta.kernel_enum_builder;
6 6
7 import 'package:front_end/src/fasta/builder/ast_factory.dart' show AstFactory;
8
9 import 'package:kernel/ast.dart' 7 import 'package:kernel/ast.dart'
10 show 8 show
11 Arguments, 9 Arguments,
12 Class, 10 Class,
13 Constructor, 11 Constructor,
14 ConstructorInvocation, 12 ConstructorInvocation,
15 DirectPropertyGet, 13 DirectPropertyGet,
16 Expression, 14 Expression,
17 Field, 15 Field,
18 FieldInitializer, 16 FieldInitializer,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 this.intType, 79 this.intType,
82 this.listType, 80 this.listType,
83 this.objectType, 81 this.objectType,
84 this.stringType, 82 this.stringType,
85 LibraryBuilder parent, 83 LibraryBuilder parent,
86 int charOffset) 84 int charOffset)
87 : super(metadata, 0, name, null, null, null, scope, constructors, parent, 85 : super(metadata, 0, name, null, null, null, scope, constructors, parent,
88 null, charOffset, cls); 86 null, charOffset, cls);
89 87
90 factory KernelEnumBuilder( 88 factory KernelEnumBuilder(
91 AstFactory astFactory,
92 List<MetadataBuilder> metadata, 89 List<MetadataBuilder> metadata,
93 String name, 90 String name,
94 List<Object> constantNamesAndOffsets, 91 List<Object> constantNamesAndOffsets,
95 KernelLibraryBuilder parent, 92 KernelLibraryBuilder parent,
96 int charOffset, 93 int charOffset,
97 int charEndOffset) { 94 int charEndOffset) {
98 constantNamesAndOffsets ??= const <Object>[]; 95 constantNamesAndOffsets ??= const <Object>[];
99 // TODO(ahe): These types shouldn't be looked up in scope, they come 96 // TODO(ahe): These types shouldn't be looked up in scope, they come
100 // directly from dart:core. 97 // directly from dart:core.
101 KernelTypeBuilder intType = 98 KernelTypeBuilder intType =
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 new ConstructorInvocation(constructor, arguments, isConst: true); 266 new ConstructorInvocation(constructor, arguments, isConst: true);
270 } 267 }
271 return super.build(libraryBuilder, coreLibrary); 268 return super.build(libraryBuilder, coreLibrary);
272 } 269 }
273 270
274 @override 271 @override
275 Builder findConstructorOrFactory(String name, int charOffset, Uri uri) { 272 Builder findConstructorOrFactory(String name, int charOffset, Uri uri) {
276 return null; 273 return null;
277 } 274 }
278 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698