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

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

Issue 2794013003: Re-duplicate frontend_accessors.dart. (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
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.body_builder; 5 library fasta.body_builder;
6 6
7 import '../fasta_codes.dart' 7 import '../fasta_codes.dart'
8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; 8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody;
9 9
10 import '../parser/parser.dart' show FormalParameterType, optional; 10 import '../parser/parser.dart' show FormalParameterType, optional;
11 11
12 import '../parser/identifier_context.dart' show IdentifierContext; 12 import '../parser/identifier_context.dart' show IdentifierContext;
13 13
14 import 'package:kernel/ast.dart'; 14 import 'package:kernel/ast.dart';
15 15
16 import 'package:kernel/clone.dart' show CloneVisitor; 16 import 'package:kernel/clone.dart' show CloneVisitor;
17 17
18 import 'package:kernel/transformations/flags.dart' show TransformerFlag; 18 import 'package:kernel/transformations/flags.dart' show TransformerFlag;
19 19
20 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; 20 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy;
21 21
22 import 'package:kernel/core_types.dart' show CoreTypes; 22 import 'package:kernel/core_types.dart' show CoreTypes;
23 23
24 import 'package:kernel/frontend/accessors.dart' 24 import 'frontend_accessors.dart' show buildIsNull, makeBinary, makeLet;
25 show buildIsNull, makeBinary, makeLet;
26 25
27 import '../parser/dart_vm_native.dart' show skipNativeClause; 26 import '../parser/dart_vm_native.dart' show skipNativeClause;
28 27
29 import '../scanner/token.dart' 28 import '../scanner/token.dart'
30 show BeginGroupToken, Token, isBinaryOperator, isMinusOperator; 29 show BeginGroupToken, Token, isBinaryOperator, isMinusOperator;
31 30
32 import '../errors.dart' show formatUnexpected, internalError; 31 import '../errors.dart' show formatUnexpected, internalError;
33 32
34 import '../source/scope_listener.dart' 33 import '../source/scope_listener.dart'
35 show JumpTargetKind, NullValue, ScopeListener; 34 show JumpTargetKind, NullValue, ScopeListener;
(...skipping 2888 matching lines...) Expand 10 before | Expand all | Expand 10 after
2924 } else if (node is PrefixBuilder) { 2923 } else if (node is PrefixBuilder) {
2925 return node.name; 2924 return node.name;
2926 } else if (node is ThisAccessor) { 2925 } else if (node is ThisAccessor) {
2927 return node.isSuper ? "super" : "this"; 2926 return node.isSuper ? "super" : "this";
2928 } else if (node is FastaAccessor) { 2927 } else if (node is FastaAccessor) {
2929 return node.plainNameForRead; 2928 return node.plainNameForRead;
2930 } else { 2929 } else {
2931 return internalError("Unhandled: ${node.runtimeType}"); 2930 return internalError("Unhandled: ${node.runtimeType}");
2932 } 2931 }
2933 } 2932 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698