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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 2897263002: Add KernelToElementMap.getSpannable to avoid most usage of KernelAstAdapter.getNode (Closed)
Patch Set: Created 3 years, 7 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/compiler/lib/src/kernel/element_map_impl.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' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart'; 8 import '../common/names.dart';
9 import '../constants/constructors.dart'; 9 import '../constants/constructors.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 /// Computes the [InterfaceType] referenced by a call to the 141 /// Computes the [InterfaceType] referenced by a call to the
142 /// [JS_INTERCEPTOR_CONSTANT] function, if any. 142 /// [JS_INTERCEPTOR_CONSTANT] function, if any.
143 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node); 143 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node);
144 144
145 /// Computes the [ConstantValue] for the constant [expression]. 145 /// Computes the [ConstantValue] for the constant [expression].
146 ConstantValue getConstantValue(ir.Expression expression); 146 ConstantValue getConstantValue(ir.Expression expression);
147 147
148 /// Returns the `noSuchMethod` [FunctionEntity] call from a 148 /// Returns the `noSuchMethod` [FunctionEntity] call from a
149 /// `super.noSuchMethod` invocation within [cls]. 149 /// `super.noSuchMethod` invocation within [cls].
150 FunctionEntity getSuperNoSuchMethod(ClassEntity cls); 150 FunctionEntity getSuperNoSuchMethod(ClassEntity cls);
151
152 /// Returns a [Spannable] for a message pointing to the IR [node] in the
153 /// context of [member].
154 Spannable getSpannable(MemberEntity member, ir.Node node);
151 } 155 }
152 156
153 /// Kinds of foreign functions. 157 /// Kinds of foreign functions.
154 enum ForeignKind { 158 enum ForeignKind {
155 JS, 159 JS,
156 JS_BUILTIN, 160 JS_BUILTIN,
157 JS_EMBEDDED_GLOBAL, 161 JS_EMBEDDED_GLOBAL,
158 JS_INTERCEPTOR_CONSTANT, 162 JS_INTERCEPTOR_CONSTANT,
159 NONE, 163 NONE,
160 } 164 }
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 TypeMask getInferredTypeOf(MemberEntity member); 925 TypeMask getInferredTypeOf(MemberEntity member);
922 926
923 /// Returns the inferred type of a dynamic [selector] access on a receiver of 927 /// Returns the inferred type of a dynamic [selector] access on a receiver of
924 /// type [mask]. 928 /// type [mask].
925 TypeMask selectorTypeOf(Selector selector, TypeMask mask); 929 TypeMask selectorTypeOf(Selector selector, TypeMask mask);
926 930
927 /// Returns the returned type annotation in the [nativeBehavior]. 931 /// Returns the returned type annotation in the [nativeBehavior].
928 TypeMask typeFromNativeBehavior( 932 TypeMask typeFromNativeBehavior(
929 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld); 933 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld);
930 } 934 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698