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

Side by Side Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 2004833003: Support multiple resolution inputs from command line. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix and check library separation Created 4 years, 7 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Implementation of the element model used for deserialiation. 5 /// Implementation of the element model used for deserialiation.
6 /// 6 ///
7 /// These classes are created by [ElementDeserializer] triggered by the 7 /// These classes are created by [ElementDeserializer] triggered by the
8 /// [Deserializer]. 8 /// [Deserializer].
9 9
10 library dart2js.serialization.modelz; 10 library dart2js.serialization.modelz;
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 @override 364 @override
365 ElementKind get kind => ElementKind.LIBRARY; 365 ElementKind get kind => ElementKind.LIBRARY;
366 366
367 @override 367 @override
368 Element get enclosingElement => null; 368 Element get enclosingElement => null;
369 369
370 @override 370 @override
371 String get name => entryCompilationUnit.name; 371 String get name => entryCompilationUnit.name;
372 372
373 @override 373 @override
374 SourceSpan get sourcePosition => entryCompilationUnit.sourcePosition;
375
376 @override
374 accept(ElementVisitor visitor, arg) { 377 accept(ElementVisitor visitor, arg) {
375 return visitor.visitLibraryElement(this, arg); 378 return visitor.visitLibraryElement(this, arg);
376 } 379 }
377 380
378 @override 381 @override
379 LibraryElement get library => this; 382 LibraryElement get library => this;
380 383
381 @override 384 @override
382 CompilationUnitElement get compilationUnit => entryCompilationUnit; 385 CompilationUnitElement get compilationUnit => entryCompilationUnit;
383 386
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 552
550 @override 553 @override
551 ElementKind get kind => ElementKind.COMPILATION_UNIT; 554 ElementKind get kind => ElementKind.COMPILATION_UNIT;
552 555
553 @override 556 @override
554 CompilationUnitElement get compilationUnit => this; 557 CompilationUnitElement get compilationUnit => this;
555 558
556 @override 559 @override
557 Element get enclosingElement => library; 560 Element get enclosingElement => library;
558 561
562
563 @override
564 SourceSpan get sourcePosition => new SourceSpan(script.resourceUri, 0, 0);
565
559 @override 566 @override
560 accept(ElementVisitor visitor, arg) { 567 accept(ElementVisitor visitor, arg) {
561 return visitor.visitCompilationUnitElement(this, arg); 568 return visitor.visitCompilationUnitElement(this, arg);
562 } 569 }
563 570
564 @override 571 @override
565 void forEachLocalMember(f(Element element)) { 572 void forEachLocalMember(f(Element element)) {
566 if (_members == null) { 573 if (_members == null) {
567 _members = _decoder.getElements(Key.ELEMENTS, isOptional: true); 574 _members = _decoder.getElements(Key.ELEMENTS, isOptional: true);
568 } 575 }
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 } 2156 }
2150 2157
2151 @override 2158 @override
2152 ElementKind get kind => ElementKind.PREFIX; 2159 ElementKind get kind => ElementKind.PREFIX;
2153 2160
2154 @override 2161 @override
2155 Element lookupLocalMember(String memberName) { 2162 Element lookupLocalMember(String memberName) {
2156 return _unsupported('lookupLocalMember'); 2163 return _unsupported('lookupLocalMember');
2157 } 2164 }
2158 } 2165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698