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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart

Issue 12207017: Allow metadata on script tags. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bug in legacy tags Created 7 years, 10 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
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart b/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart
index d556fa39dcb8ba536b6501c79d9d6fc438e63536..998348915d45d10843b4f0881f4a99f8826a1714 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart
@@ -370,7 +370,7 @@ class PatchElementListener extends ElementListener implements PatchListener {
this.imports)
: super(listener, patchElement, idGenerator);
- MetadataAnnotation popMetadata() {
+ MetadataAnnotation popMetadataHack() {
// TODO(ahe): Remove this method.
popNode(); // Discard null.
return new PatchMetadataAnnotation();
@@ -407,7 +407,7 @@ class PatchElementListener extends ElementListener implements PatchListener {
void pushElement(Element element) {
if (isMemberPatch || (isClassPatch && element is ClassElement)) {
// Apply patch.
- element.addMetadata(popMetadata());
+ element.addMetadata(popMetadataHack());
LibraryElement originLibrary = compilationUnitElement.getLibrary();
assert(originLibrary.isPatched);
Element existing = originLibrary.localLookup(element.name);
@@ -470,7 +470,7 @@ class PatchMemberListener extends MemberListener implements PatchListener {
Element enclosingElement)
: super(listener, enclosingElement);
- MetadataAnnotation popMetadata() {
+ MetadataAnnotation popMetadataHack() {
// TODO(ahe): Remove this method.
popNode(); // Discard null.
return new PatchMetadataAnnotation();
@@ -495,7 +495,7 @@ class PatchMemberListener extends MemberListener implements PatchListener {
void addMember(Element element) {
if (isMemberPatch || (isClassPatch && element is ClassElement)) {
- element.addMetadata(popMetadata());
+ element.addMetadata(popMetadataHack());
}
super.addMember(element);
}
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698