OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |