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

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

Issue 2784283002: Remove unnecessary import prefixes. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:kernel/ast.dart' show DartType; 5 import 'package:kernel/ast.dart' show DartType;
6 6
7 import '../builder/ast_factory.dart' as builder; 7 import '../builder/ast_factory.dart';
8 import '../builder/shadow_ast.dart' as builder; 8 import '../builder/shadow_ast.dart';
9 import 'kernel_shadow_ast.dart'; 9 import 'kernel_shadow_ast.dart';
10 10
11 /// Concrete implementation of [builder.AstFactory] for building a kernel AST. 11 /// Concrete implementation of [builder.AstFactory] for building a kernel AST.
12 class KernelAstFactory implements builder.AstFactory { 12 class KernelAstFactory implements AstFactory {
13 @override 13 @override
14 KernelBlock block(List<builder.ShadowStatement> statements, int charOffset) { 14 KernelBlock block(List<ShadowStatement> statements, int charOffset) {
15 return new KernelBlock(statements)..fileOffset = charOffset; 15 return new KernelBlock(statements)..fileOffset = charOffset;
16 } 16 }
17 17
18 @override 18 @override
19 KernelIntLiteral intLiteral(value, int charOffset) { 19 KernelIntLiteral intLiteral(value, int charOffset) {
20 return new KernelIntLiteral(value)..fileOffset = charOffset; 20 return new KernelIntLiteral(value)..fileOffset = charOffset;
21 } 21 }
22 22
23 @override 23 @override
24 KernelListLiteral listLiteral(List<builder.ShadowExpression> expressions, 24 KernelListLiteral listLiteral(List<ShadowExpression> expressions,
25 DartType typeArgument, bool isConst, int charOffset) { 25 DartType typeArgument, bool isConst, int charOffset) {
26 return new KernelListLiteral(expressions, 26 return new KernelListLiteral(expressions,
27 typeArgument: typeArgument, isConst: isConst)..fileOffset = charOffset; 27 typeArgument: typeArgument, isConst: isConst)..fileOffset = charOffset;
28 } 28 }
29 29
30 @override 30 @override
31 KernelNullLiteral nullLiteral(int charOffset) { 31 KernelNullLiteral nullLiteral(int charOffset) {
32 return new KernelNullLiteral()..fileOffset = charOffset; 32 return new KernelNullLiteral()..fileOffset = charOffset;
33 } 33 }
34 34
35 @override 35 @override
36 KernelReturnStatement returnStatement( 36 KernelReturnStatement returnStatement(
37 builder.ShadowExpression expression, int charOffset) { 37 ShadowExpression expression, int charOffset) {
38 return new KernelReturnStatement(expression)..fileOffset = charOffset; 38 return new KernelReturnStatement(expression)..fileOffset = charOffset;
39 } 39 }
40 40
41 @override 41 @override
42 KernelVariableDeclaration variableDeclaration(String name, 42 KernelVariableDeclaration variableDeclaration(String name,
43 {DartType type, 43 {DartType type,
44 builder.ShadowExpression initializer, 44 ShadowExpression initializer,
45 int charOffset, 45 int charOffset,
46 bool isFinal: false, 46 bool isFinal: false,
47 bool isConst: false}) { 47 bool isConst: false}) {
48 return new KernelVariableDeclaration(name, 48 return new KernelVariableDeclaration(name,
49 type: type, 49 type: type,
50 initializer: initializer, 50 initializer: initializer,
51 isFinal: isFinal, 51 isFinal: isFinal,
52 isConst: isConst)..fileEqualsOffset = charOffset; 52 isConst: isConst)..fileEqualsOffset = charOffset;
53 } 53 }
54 } 54 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698