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

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

Issue 2610513005: Use Entity instead of Element in ConstantValue (Closed)
Patch Set: Created 3 years, 11 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/compiler/lib/src/kernel/kernel.dart ('k') | pkg/compiler/lib/src/mirrors_used.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) 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 import 'package:kernel/frontend/accessors.dart' 6 import 'package:kernel/frontend/accessors.dart'
7 show 7 show
8 Accessor, 8 Accessor,
9 IndexAccessor, 9 IndexAccessor,
10 NullAwarePropertyAccessor, 10 NullAwarePropertyAccessor,
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 MethodElement setter, NodeList parameters, Node body, _) { 2242 MethodElement setter, NodeList parameters, Node body, _) {
2243 return buildIrFunction(ir.ProcedureKind.Setter, setter, body); 2243 return buildIrFunction(ir.ProcedureKind.Setter, setter, body);
2244 } 2244 }
2245 2245
2246 @override 2246 @override
2247 ir.Expression handleStaticSetterGet(Send node, FunctionElement setter, _) { 2247 ir.Expression handleStaticSetterGet(Send node, FunctionElement setter, _) {
2248 return buildStaticAccessor(null, setter).buildSimpleRead(); 2248 return buildStaticAccessor(null, setter).buildSimpleRead();
2249 } 2249 }
2250 2250
2251 @override 2251 @override
2252 ir.Expression handleStaticSetterInvoke( 2252 ir.Expression handleStaticSetterInvoke(Send node, FunctionElement setter,
2253 Send node, 2253 NodeList arguments, CallStructure callStructure, _) {
2254 FunctionElement setter,
2255 NodeList arguments,
2256 CallStructure callStructure,
2257 _) {
2258 return new ir.InvalidExpression(); 2254 return new ir.InvalidExpression();
2259 } 2255 }
2260 2256
2261 @override 2257 @override
2262 ir.Expression handleStaticSetterSet( 2258 ir.Expression handleStaticSetterSet(
2263 SendSet node, FunctionElement setter, Node rhs, _) { 2259 SendSet node, FunctionElement setter, Node rhs, _) {
2264 return buildStaticAccessor(null, setter) 2260 return buildStaticAccessor(null, setter)
2265 .buildAssignment(visitForValue(rhs), voidContext: isVoidContext); 2261 .buildAssignment(visitForValue(rhs), voidContext: isVoidContext);
2266 } 2262 }
2267 2263
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2854 : this(null, true, node, initializers); 2850 : this(null, true, node, initializers);
2855 2851
2856 accept(ir.Visitor v) => throw "unsupported"; 2852 accept(ir.Visitor v) => throw "unsupported";
2857 2853
2858 visitChildren(ir.Visitor v) => throw "unsupported"; 2854 visitChildren(ir.Visitor v) => throw "unsupported";
2859 2855
2860 String toString() { 2856 String toString() {
2861 return "IrFunction($kind, $isConstructor, $node, $initializers)"; 2857 return "IrFunction($kind, $isConstructor, $node, $initializers)";
2862 } 2858 }
2863 } 2859 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698