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

Side by Side Diff: pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart

Issue 1095903002: Deal with deferred loading in the VM mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js.mirrors; 5 part of dart2js.mirrors;
6 6
7 7
8 class Dart2JsLibraryMirror 8 class Dart2JsLibraryMirror
9 extends Dart2JsElementMirror 9 extends Dart2JsElementMirror
10 with ObjectMirrorMixin, ContainerMixin 10 with ObjectMirrorMixin, ContainerMixin
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 bool get isDeferred { 157 bool get isDeferred {
158 if (_node is Import) { 158 if (_node is Import) {
159 Import import = _node; 159 Import import = _node;
160 return import.isDeferred; 160 return import.isDeferred;
161 } 161 }
162 return false; 162 return false;
163 } 163 }
164 164
165 List<InstanceMirror> get metadata => const <InstanceMirror>[]; 165 List<InstanceMirror> get metadata => const <InstanceMirror>[];
166
167 /*Future<LibraryMirror>*/ loadLibrary() {
168 throw new UnsupportedError(
169 'LibraryDependencyMirror.loadLibrary unsupported.');
170 }
166 } 171 }
167 172
168 class Dart2JsCombinatorMirror implements CombinatorSourceMirror { 173 class Dart2JsCombinatorMirror implements CombinatorSourceMirror {
169 final List/*<String>*/ identifiers; 174 final List/*<String>*/ identifiers;
170 final bool isShow; 175 final bool isShow;
171 176
172 Dart2JsCombinatorMirror(this.identifiers, {bool isShow: true}) 177 Dart2JsCombinatorMirror(this.identifiers, {bool isShow: true})
173 : this.isShow = isShow; 178 : this.isShow = isShow;
174 179
175 bool get isHide => !isShow; 180 bool get isHide => !isShow;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 int get offset => _span.begin; 240 int get offset => _span.begin;
236 241
237 int get length => _span.end - _span.begin; 242 int get length => _span.end - _span.begin;
238 243
239 String get text => _script.text.substring(_span.begin, _span.end); 244 String get text => _script.text.substring(_span.begin, _span.end);
240 245
241 Uri get sourceUri => _script.resourceUri; 246 Uri get sourceUri => _script.resourceUri;
242 247
243 String get sourceText => _script.text; 248 String get sourceText => _script.text;
244 } 249 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/mirrors/source_mirrors.dart » ('j') | pkg/compiler/lib/src/mirrors/source_mirrors.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698