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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 * - Builders shift between declaration and implementation depending on usages. 109 * - Builders shift between declaration and implementation depending on usages.
110 * - Compile-time constants use constructor implementation exclusively. 110 * - Compile-time constants use constructor implementation exclusively.
111 * - Work on function parameters is performed on the declaration of the function 111 * - Work on function parameters is performed on the declaration of the function
112 * element. 112 * element.
113 */ 113 */
114 114
115 library patchparser; 115 library patchparser;
116 116
117 import 'dart:async'; 117 import 'dart:async';
118 118
119 import 'constants/values.dart' show ConstantValue; 119 import 'constants/values.dart' show
120 import 'dart2jslib.dart' 120 ConstantValue;
121 show Compiler, 121 import 'compiler.dart' show
122 CompilerTask; 122 Compiler;
123 import 'common/tasks.dart' show
124 CompilerTask;
123 import 'diagnostic_listener.dart'; 125 import 'diagnostic_listener.dart';
124 import 'elements/elements.dart'; 126 import 'elements/elements.dart';
125 import 'elements/modelx.dart' 127 import 'elements/modelx.dart' show
126 show BaseFunctionElementX, 128 BaseFunctionElementX,
127 ClassElementX, 129 ClassElementX,
128 GetterElementX, 130 GetterElementX,
129 LibraryElementX, 131 LibraryElementX,
130 MetadataAnnotationX, 132 MetadataAnnotationX,
131 SetterElementX; 133 SetterElementX;
132 import 'messages.dart' show MessageKind; 134 import 'messages.dart' show
133 import 'library_loader.dart' show LibraryLoader; 135 MessageKind;
136 import 'library_loader.dart' show
137 LibraryLoader;
134 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners 138 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners
135 import 'script.dart'; 139 import 'script.dart';
136 import 'util/util.dart'; 140 import 'util/util.dart';
137 141
138 class PatchParserTask extends CompilerTask { 142 class PatchParserTask extends CompilerTask {
139 final String name = "Patching Parser"; 143 final String name = "Patching Parser";
140 144
141 PatchParserTask(Compiler compiler): super(compiler); 145 PatchParserTask(Compiler compiler): super(compiler);
142 146
143 /** 147 /**
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 574
571 class PatchVersion { 575 class PatchVersion {
572 final String tag; 576 final String tag;
573 577
574 const PatchVersion(this.tag); 578 const PatchVersion(this.tag);
575 579
576 bool isActive(String patchTag) => tag == null || tag == patchTag; 580 bool isActive(String patchTag) => tag == null || tag == patchTag;
577 581
578 String toString() => 'PatchVersion($tag)'; 582 String toString() => 'PatchVersion($tag)';
579 } 583 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ordered_typeset.dart ('k') | pkg/compiler/lib/src/resolution/class_members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698