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

Unified Diff: lib/compiler/implementation/scanner/listener.dart

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replaced includeInjectedMembers by implementation Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/scanner/listener.dart
diff --git a/lib/compiler/implementation/scanner/listener.dart b/lib/compiler/implementation/scanner/listener.dart
index 3298428766a661c10ad6f2cbe62d4ec997f1dd80..aa86a8810757695f02448f1023a4f937a2c79c2d 100644
--- a/lib/compiler/implementation/scanner/listener.dart
+++ b/lib/compiler/implementation/scanner/listener.dart
@@ -949,7 +949,7 @@ class ElementListener extends Listener {
if (!allowLibraryTags()) {
recoverableError('library tags not allowed here', node: tag);
}
- compilationUnitElement.getLibrary().addTag(tag, listener);
+ compilationUnitElement.getImplementationLibrary().addTag(tag, listener);
}
void pushNode(Node node) {
@@ -1662,13 +1662,11 @@ class PartialFunctionElement extends FunctionElement {
FunctionExpression parseNode(DiagnosticListener listener) {
if (cachedNode != null) return cachedNode;
- if (patch !== null) {
- cachedNode = patch.parseNode(listener);
- return cachedNode;
- }
- if (modifiers.isExternal()) {
- listener.cancel("External method without an implementation",
- element: this);
+ if (patch === null) {
+ if (modifiers.isExternal()) {
+ listener.cancel("External method without an implementation",
+ element: this);
+ }
}
parseFunction(Parser p) {
if (isMember() && modifiers.isFactory()) {
@@ -1682,7 +1680,6 @@ class PartialFunctionElement extends FunctionElement {
}
Token position() {
- if (patch !== null) return patch.position();
return findMyName(beginToken);
}

Powered by Google App Engine
This is Rietveld 408576698