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

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

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 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) 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 /** 5 /**
6 * This library contains the infrastructure to parse and integrate patch files. 6 * This library contains the infrastructure to parse and integrate patch files.
7 * 7 *
8 * Three types of elements can be patched: [LibraryElement], [ClassElement], 8 * Three types of elements can be patched: [LibraryElement], [ClassElement],
9 * [FunctionElement]. Patches are introduced in patch libraries which are loaded 9 * [FunctionElement]. Patches are introduced in patch libraries which are loaded
10 * together with the corresponding origin library. Which libraries that are 10 * together with the corresponding origin library. Which libraries that are
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 import 'elements/resolution_types.dart' show ResolutionDartType; 127 import 'elements/resolution_types.dart' show ResolutionDartType;
128 import 'elements/elements.dart'; 128 import 'elements/elements.dart';
129 import 'elements/modelx.dart' 129 import 'elements/modelx.dart'
130 show 130 show
131 BaseFunctionElementX, 131 BaseFunctionElementX,
132 ClassElementX, 132 ClassElementX,
133 GetterElementX, 133 GetterElementX,
134 LibraryElementX, 134 LibraryElementX,
135 MetadataAnnotationX, 135 MetadataAnnotationX,
136 SetterElementX; 136 SetterElementX;
137 import 'elements/names.dart';
137 import 'enqueue.dart' show DeferredAction; 138 import 'enqueue.dart' show DeferredAction;
138 import 'id_generator.dart'; 139 import 'id_generator.dart';
139 import 'library_loader.dart' show LibraryLoader; 140 import 'library_loader.dart' show LibraryLoader;
140 import 'parser/element_listener.dart' show ElementListener; 141 import 'parser/element_listener.dart' show ElementListener;
141 import 'parser/member_listener.dart' show MemberListener; 142 import 'parser/member_listener.dart' show MemberListener;
142 import 'parser/partial_elements.dart' 143 import 'parser/partial_elements.dart'
143 show ClassElementParser, PartialClassElement; 144 show ClassElementParser, PartialClassElement;
144 import 'parser/diet_parser_task.dart' show PartialParser; 145 import 'parser/diet_parser_task.dart' show PartialParser;
145 import 'script.dart'; 146 import 'script.dart';
146 147
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 origin, "Trying to patch a function more than once."); 498 origin, "Trying to patch a function more than once.");
498 } 499 }
499 origin.applyPatch(patch); 500 origin.applyPatch(patch);
500 } 501 }
501 502
502 bool _isMarkedAsPatch(Compiler compiler, Element element) { 503 bool _isMarkedAsPatch(Compiler compiler, Element element) {
503 return EagerAnnotationHandler.checkAnnotation( 504 return EagerAnnotationHandler.checkAnnotation(
504 compiler, element, const PatchAnnotationHandler()) == 505 compiler, element, const PatchAnnotationHandler()) ==
505 true; 506 true;
506 } 507 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_visitor.dart ('k') | pkg/compiler/lib/src/resolution/access_semantics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698