| 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);
|
| }
|
|
|
|
|