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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution.dart

Issue 1408043002: Move native and js interop properties from the element model to the JS backend (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/patch_parser.dart ('k') | pkg/compiler/lib/src/ssa/builder.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) 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 library dart2js.resolution; 5 library dart2js.resolution;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show 10 import '../common/names.dart' show
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 case AsyncMarker.SYNC_STAR: 185 case AsyncMarker.SYNC_STAR:
186 compiler.iterableClass.ensureResolved(resolution); 186 compiler.iterableClass.ensureResolved(resolution);
187 break; 187 break;
188 } 188 }
189 } 189 }
190 } 190 }
191 191
192 bool _isNativeClassOrExtendsNativeClass(ClassElement classElement) { 192 bool _isNativeClassOrExtendsNativeClass(ClassElement classElement) {
193 assert(classElement != null); 193 assert(classElement != null);
194 while (classElement != null) { 194 while (classElement != null) {
195 if (classElement.isNative) return true; 195 if (compiler.backend.isNative(classElement)) return true;
196 classElement = classElement.superclass; 196 classElement = classElement.superclass;
197 } 197 }
198 return false; 198 return false;
199 } 199 }
200 200
201 WorldImpact resolveMethodElementImplementation( 201 WorldImpact resolveMethodElementImplementation(
202 FunctionElement element, FunctionExpression tree) { 202 FunctionElement element, FunctionExpression tree) {
203 return reporter.withCurrentElement(element, () { 203 return reporter.withCurrentElement(element, () {
204 if (element.isExternal && tree.hasBody()) { 204 if (element.isExternal && tree.hasBody()) {
205 reporter.reportErrorMessage( 205 reporter.reportErrorMessage(
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 TreeElements get treeElements { 1076 TreeElements get treeElements {
1077 assert(invariant(this, _treeElements !=null, 1077 assert(invariant(this, _treeElements !=null,
1078 message: "TreeElements have not been computed for $this.")); 1078 message: "TreeElements have not been computed for $this."));
1079 return _treeElements; 1079 return _treeElements;
1080 } 1080 }
1081 1081
1082 void reuseElement() { 1082 void reuseElement() {
1083 _treeElements = null; 1083 _treeElements = null;
1084 } 1084 }
1085 } 1085 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698