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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java

Issue 10860012: Add support for metadata annotation syntax (issue 4056) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
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 package com.google.dart.compiler.resolver; 5 package com.google.dart.compiler.resolver;
6 6
7 import com.google.common.collect.Lists; 7 import com.google.common.collect.Lists;
8 import com.google.dart.compiler.ast.DartClass; 8 import com.google.dart.compiler.ast.DartClass;
9 import com.google.dart.compiler.ast.DartDeclaration; 9 import com.google.dart.compiler.ast.DartDeclaration;
10 import com.google.dart.compiler.ast.DartObsoleteMetadata; 10 import com.google.dart.compiler.ast.DartObsoleteMetadata;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 }; 56 };
57 57
58 ClassElementImplementation(DartClass node, String name, String nativeName, 58 ClassElementImplementation(DartClass node, String name, String nativeName,
59 LibraryElement library) { 59 LibraryElement library) {
60 super(node, name); 60 super(node, name);
61 this.nativeName = nativeName; 61 this.nativeName = nativeName;
62 this.library = library; 62 this.library = library;
63 if (node != null) { 63 if (node != null) {
64 isInterface = node.isInterface(); 64 isInterface = node.isInterface();
65 metadata = node.getMetadata(); 65 metadata = node.getObsoleteMetadata();
66 modifiers = node.getModifiers(); 66 modifiers = node.getModifiers();
67 nameLocation = node.getName().getSourceInfo(); 67 nameLocation = node.getName().getSourceInfo();
68 declarationNameWithTypeParameter = new DartParameterizedTypeNode(node.getN ame(), node.getTypeParameters()).toSource(); 68 declarationNameWithTypeParameter = new DartParameterizedTypeNode(node.getN ame(), node.getTypeParameters()).toSource();
69 } else { 69 } else {
70 isInterface = false; 70 isInterface = false;
71 metadata = DartObsoleteMetadata.EMPTY; 71 metadata = DartObsoleteMetadata.EMPTY;
72 modifiers = Modifiers.NONE; 72 modifiers = Modifiers.NONE;
73 nameLocation = SourceInfo.UNKNOWN; 73 nameLocation = SourceInfo.UNKNOWN;
74 declarationNameWithTypeParameter = ""; 74 declarationNameWithTypeParameter = "";
75 } 75 }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 @Override 367 @Override
368 public List<Element> getUnimplementedMembers() { 368 public List<Element> getUnimplementedMembers() {
369 return unimplementedMembers; 369 return unimplementedMembers;
370 } 370 }
371 371
372 @Override 372 @Override
373 public void setUnimplementedMembers(List<Element> members) { 373 public void setUnimplementedMembers(List<Element> members) {
374 this.unimplementedMembers = members; 374 this.unimplementedMembers = members;
375 } 375 }
376 } 376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698