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

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

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 library patchparser; 115 library patchparser;
116 116
117 import 'dart:async'; 117 import 'dart:async';
118 118
119 import 'constants/values.dart' show 119 import 'constants/values.dart' show
120 ConstantValue; 120 ConstantValue;
121 import 'compiler.dart' show 121 import 'compiler.dart' show
122 Compiler; 122 Compiler;
123 import 'common/tasks.dart' show 123 import 'common/tasks.dart' show
124 CompilerTask; 124 CompilerTask;
125 import 'diagnostic_listener.dart'; 125 import 'diagnostics/diagnostic_listener.dart';
126 import 'diagnostics/messages.dart' show
127 MessageKind;
126 import 'elements/elements.dart'; 128 import 'elements/elements.dart';
127 import 'elements/modelx.dart' show 129 import 'elements/modelx.dart' show
128 BaseFunctionElementX, 130 BaseFunctionElementX,
129 ClassElementX, 131 ClassElementX,
130 GetterElementX, 132 GetterElementX,
131 LibraryElementX, 133 LibraryElementX,
132 MetadataAnnotationX, 134 MetadataAnnotationX,
133 SetterElementX; 135 SetterElementX;
134 import 'messages.dart' show
135 MessageKind;
136 import 'library_loader.dart' show 136 import 'library_loader.dart' show
137 LibraryLoader; 137 LibraryLoader;
138 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners 138 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners
139 import 'script.dart'; 139 import 'script.dart';
140 import 'util/util.dart'; 140 import 'util/util.dart';
141 141
142 class PatchParserTask extends CompilerTask { 142 class PatchParserTask extends CompilerTask {
143 final String name = "Patching Parser"; 143 final String name = "Patching Parser";
144 144
145 PatchParserTask(Compiler compiler): super(compiler); 145 PatchParserTask(Compiler compiler): super(compiler);
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 class PatchVersion { 575 class PatchVersion {
576 final String tag; 576 final String tag;
577 577
578 const PatchVersion(this.tag); 578 const PatchVersion(this.tag);
579 579
580 bool isActive(String patchTag) => tag == null || tag == patchTag; 580 bool isActive(String patchTag) => tag == null || tag == patchTag;
581 581
582 String toString() => 'PatchVersion($tag)'; 582 String toString() => 'PatchVersion($tag)';
583 } 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