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

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

Issue 2908113002: Various constant checks. (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
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | tests/co19/co19-kernel.status » ('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) 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.fasta_accessors; 5 library fasta.fasta_accessors;
6 6
7 export 'frontend_accessors.dart' show wrapInvalid; 7 export 'frontend_accessors.dart' show wrapInvalid;
8 8
9 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' 9 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
10 show KernelArguments, KernelMethodInvocation; 10 show KernelArguments, KernelMethodInvocation;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 import '../names.dart' show callName; 43 import '../names.dart' show callName;
44 44
45 abstract class BuilderHelper { 45 abstract class BuilderHelper {
46 Uri get uri; 46 Uri get uri;
47 47
48 TypePromoter get typePromoter; 48 TypePromoter get typePromoter;
49 49
50 int get functionNestingLevel; 50 int get functionNestingLevel;
51 51
52 bool get constantExpressionRequired;
53
52 Constructor lookupConstructor(Name name, {bool isSuper}); 54 Constructor lookupConstructor(Name name, {bool isSuper});
53 55
54 Expression toSuperMethodInvocation(MethodInvocation node); 56 Expression toSuperMethodInvocation(MethodInvocation node);
55 57
56 Expression toValue(node); 58 Expression toValue(node);
57 59
58 Member lookupSuperMember(Name name, {bool isSetter: false}); 60 Member lookupSuperMember(Name name, {bool isSetter: false});
59 61
60 scopeLookup(Scope scope, String name, Token token, 62 scopeLookup(Scope scope, String name, Token token,
61 {bool isQualified: false, PrefixBuilder prefix}); 63 {bool isQualified: false, PrefixBuilder prefix});
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 new NullLiteral(), 923 new NullLiteral(),
922 new KernelMethodInvocation( 924 new KernelMethodInvocation(
923 new VariableGet(variable), name, arguments) 925 new VariableGet(variable), name, arguments)
924 ..fileOffset = offset, 926 ..fileOffset = offset,
925 const DynamicType())); 927 const DynamicType()));
926 } else { 928 } else {
927 return new KernelMethodInvocation(receiver, name, arguments) 929 return new KernelMethodInvocation(receiver, name, arguments)
928 ..fileOffset = offset; 930 ..fileOffset = offset;
929 } 931 }
930 } 932 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698