| OLD | NEW |
| 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 '../elements/elements.dart'; | 7 import '../elements/elements.dart'; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/types.dart'; | 9 import '../elements/types.dart'; |
| 10 import '../native/native.dart' as native; | 10 import '../native/native.dart' as native; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 InterfaceType createInterfaceType( | 27 InterfaceType createInterfaceType( |
| 28 ir.Class cls, List<ir.DartType> typeArguments); | 28 ir.Class cls, List<ir.DartType> typeArguments); |
| 29 | 29 |
| 30 /// Returns the [CallStructure] corresponding to the [arguments]. | 30 /// Returns the [CallStructure] corresponding to the [arguments]. |
| 31 CallStructure getCallStructure(ir.Arguments arguments); | 31 CallStructure getCallStructure(ir.Arguments arguments); |
| 32 | 32 |
| 33 /// Returns the [Selector] corresponding to the invocation or getter/setter | 33 /// Returns the [Selector] corresponding to the invocation or getter/setter |
| 34 /// access of [node]. | 34 /// access of [node]. |
| 35 Selector getSelector(ir.Expression node); | 35 Selector getSelector(ir.Expression node); |
| 36 | 36 |
| 37 /// Returns the [FunctionEntity] corresponding to the generative or factory | 37 /// Returns the [ConstructorEntity] corresponding to the generative or factory |
| 38 /// constructor [node]. | 38 /// constructor [node]. |
| 39 FunctionEntity getConstructor(ir.Member node); | 39 ConstructorEntity getConstructor(ir.Member node); |
| 40 | 40 |
| 41 /// Returns the [MemberEntity] corresponding to the member [node]. | 41 /// Returns the [MemberEntity] corresponding to the member [node]. |
| 42 MemberEntity getMember(ir.Member node); | 42 MemberEntity getMember(ir.Member node); |
| 43 | 43 |
| 44 /// Returns the [FunctionEntity] corresponding to the procedure [node]. | 44 /// Returns the [FunctionEntity] corresponding to the procedure [node]. |
| 45 FunctionEntity getMethod(ir.Procedure node); | 45 FunctionEntity getMethod(ir.Procedure node); |
| 46 | 46 |
| 47 /// Returns the [FieldEntity] corresponding to the field [node]. | 47 /// Returns the [FieldEntity] corresponding to the field [node]. |
| 48 FieldEntity getField(ir.Field node); | 48 FieldEntity getField(ir.Field node); |
| 49 | 49 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 /// Kinds of foreign functions. | 96 /// Kinds of foreign functions. |
| 97 enum ForeignKind { | 97 enum ForeignKind { |
| 98 JS, | 98 JS, |
| 99 JS_BUILTIN, | 99 JS_BUILTIN, |
| 100 JS_EMBEDDED_GLOBAL, | 100 JS_EMBEDDED_GLOBAL, |
| 101 JS_INTERCEPTOR_CONSTANT, | 101 JS_INTERCEPTOR_CONSTANT, |
| 102 NONE, | 102 NONE, |
| 103 } | 103 } |
| OLD | NEW |