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

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

Issue 2642063003: Use entities in class_stub_generator. (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
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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 } 902 }
903 903
904 @override 904 @override
905 ir.NullLiteral visitLiteralNull(LiteralNull node) { 905 ir.NullLiteral visitLiteralNull(LiteralNull node) {
906 return new ir.NullLiteral(); 906 return new ir.NullLiteral();
907 } 907 }
908 908
909 @override 909 @override
910 ir.Expression visitLiteralString(LiteralString node) { 910 ir.Expression visitLiteralString(LiteralString node) {
911 if (node.dartString == null) return new ir.InvalidExpression(); 911 if (node.dartString == null) return new ir.InvalidExpression();
912 return associateNode(new ir.StringLiteral(node.dartString.slowToString()), 912 return associateNode(
913 node); 913 new ir.StringLiteral(node.dartString.slowToString()), node);
914 } 914 }
915 915
916 @override 916 @override
917 ir.SymbolLiteral visitLiteralSymbol(LiteralSymbol node) { 917 ir.SymbolLiteral visitLiteralSymbol(LiteralSymbol node) {
918 var result = new ir.SymbolLiteral(node.slowNameString); 918 var result = new ir.SymbolLiteral(node.slowNameString);
919 return associateNode(result, node); 919 return associateNode(result, node);
920 } 920 }
921 921
922 @override 922 @override
923 visitMetadata(Metadata node) { 923 visitMetadata(Metadata node) {
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 : this(null, true, node, initializers); 2859 : this(null, true, node, initializers);
2860 2860
2861 accept(ir.Visitor v) => throw "unsupported"; 2861 accept(ir.Visitor v) => throw "unsupported";
2862 2862
2863 visitChildren(ir.Visitor v) => throw "unsupported"; 2863 visitChildren(ir.Visitor v) => throw "unsupported";
2864 2864
2865 String toString() { 2865 String toString() {
2866 return "IrFunction($kind, $isConstructor, $node, $initializers)"; 2866 return "IrFunction($kind, $isConstructor, $node, $initializers)";
2867 } 2867 }
2868 } 2868 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698