OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of resolution; | 5 part of resolution; |
6 | 6 |
7 abstract class TreeElements { | 7 abstract class TreeElements { |
8 AnalyzableElement get analyzedElement; | 8 AnalyzableElement get analyzedElement; |
9 Iterable<Node> get superUses; | 9 Iterable<Node> get superUses; |
10 | 10 |
(...skipping 2907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2918 registry.registerSuperNoSuchMethod(); | 2918 registry.registerSuperNoSuchMethod(); |
2919 } | 2919 } |
2920 } | 2920 } |
2921 } | 2921 } |
2922 | 2922 |
2923 if (target != null && target.isForeign(compiler.backend)) { | 2923 if (target != null && target.isForeign(compiler.backend)) { |
2924 if (selector.name == 'JS') { | 2924 if (selector.name == 'JS') { |
2925 registry.registerJsCall(node, this); | 2925 registry.registerJsCall(node, this); |
2926 } else if (selector.name == 'JS_EMBEDDED_GLOBAL') { | 2926 } else if (selector.name == 'JS_EMBEDDED_GLOBAL') { |
2927 registry.registerJsEmbeddedGlobalCall(node, this); | 2927 registry.registerJsEmbeddedGlobalCall(node, this); |
| 2928 } else if (selector.name == 'JS_COMPILER_MACRO') { |
| 2929 registry.registerJsCompilerMacroCall(node, this); |
2928 } else if (selector.name == 'JS_INTERCEPTOR_CONSTANT') { | 2930 } else if (selector.name == 'JS_INTERCEPTOR_CONSTANT') { |
2929 if (!node.argumentsNode.isEmpty) { | 2931 if (!node.argumentsNode.isEmpty) { |
2930 Node argument = node.argumentsNode.nodes.head; | 2932 Node argument = node.argumentsNode.nodes.head; |
2931 if (argumentsToJsInterceptorConstant == null) { | 2933 if (argumentsToJsInterceptorConstant == null) { |
2932 argumentsToJsInterceptorConstant = new Set<Node>(); | 2934 argumentsToJsInterceptorConstant = new Set<Node>(); |
2933 } | 2935 } |
2934 argumentsToJsInterceptorConstant.add(argument); | 2936 argumentsToJsInterceptorConstant.add(argument); |
2935 } | 2937 } |
2936 } | 2938 } |
2937 } | 2939 } |
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5053 } | 5055 } |
5054 | 5056 |
5055 /// The result for the resolution of the `assert` method. | 5057 /// The result for the resolution of the `assert` method. |
5056 class AssertResult implements ResolutionResult { | 5058 class AssertResult implements ResolutionResult { |
5057 const AssertResult(); | 5059 const AssertResult(); |
5058 | 5060 |
5059 Element get element => null; | 5061 Element get element => null; |
5060 | 5062 |
5061 String toString() => 'AssertResult()'; | 5063 String toString() => 'AssertResult()'; |
5062 } | 5064 } |
OLD | NEW |