| Index: lib/compiler/implementation/scanner/listener.dart
|
| diff --git a/lib/compiler/implementation/scanner/listener.dart b/lib/compiler/implementation/scanner/listener.dart
|
| index 3dd58147924e7f7584f09ffb5f5e8797cf338226..83993715add42fc862dd9989e195d8e8ccf44f8c 100644
|
| --- a/lib/compiler/implementation/scanner/listener.dart
|
| +++ b/lib/compiler/implementation/scanner/listener.dart
|
| @@ -981,7 +981,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) {
|
| @@ -1702,13 +1702,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()) {
|
| @@ -1722,7 +1720,6 @@ class PartialFunctionElement extends FunctionElement {
|
| }
|
|
|
| Token position() {
|
| - if (patch !== null) return patch.position();
|
| return findMyName(beginToken);
|
| }
|
|
|
|
|