OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
Brian Wilkerson
2012/06/29 16:17:49
nit: copyright year
scheglov
2012/06/29 20:11:57
Done.
| |
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.dart.compiler.ast.DartMetadata; | |
7 import com.google.dart.compiler.ast.DartNode; | 8 import com.google.dart.compiler.ast.DartNode; |
8 import com.google.dart.compiler.ast.Modifiers; | 9 import com.google.dart.compiler.ast.Modifiers; |
9 import com.google.dart.compiler.common.SourceInfo; | 10 import com.google.dart.compiler.common.SourceInfo; |
10 import com.google.dart.compiler.type.Type; | 11 import com.google.dart.compiler.type.Type; |
11 import com.google.dart.compiler.type.Types; | 12 import com.google.dart.compiler.type.Types; |
12 | 13 |
13 abstract class AbstractNodeElement implements Element, NodeElement { | 14 abstract class AbstractNodeElement implements Element, NodeElement { |
14 private final DartNode node; | 15 private final DartNode node; |
15 private final String name; | 16 private final String name; |
16 private SourceInfo sourceInfo; | 17 private SourceInfo sourceInfo; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 void setType(Type type) { | 54 void setType(Type type) { |
54 throw new UnsupportedOperationException(); | 55 throw new UnsupportedOperationException(); |
55 } | 56 } |
56 | 57 |
57 @Override | 58 @Override |
58 public boolean isDynamic() { | 59 public boolean isDynamic() { |
59 return false; | 60 return false; |
60 } | 61 } |
61 | 62 |
62 @Override | 63 @Override |
64 public DartMetadata getMetadata() { | |
65 return DartMetadata.EMPTY; | |
66 } | |
67 | |
68 @Override | |
63 public Modifiers getModifiers() { | 69 public Modifiers getModifiers() { |
64 return Modifiers.NONE; | 70 return Modifiers.NONE; |
65 } | 71 } |
66 | 72 |
67 @Override | 73 @Override |
68 public EnclosingElement getEnclosingElement() { | 74 public EnclosingElement getEnclosingElement() { |
69 return null; | 75 return null; |
70 } | 76 } |
71 | 77 |
72 @Override | 78 @Override |
73 public SourceInfo getNameLocation() { | 79 public SourceInfo getNameLocation() { |
74 return sourceInfo; | 80 return sourceInfo; |
75 } | 81 } |
76 | 82 |
77 @Override | 83 @Override |
78 public final SourceInfo getSourceInfo() { | 84 public final SourceInfo getSourceInfo() { |
79 return sourceInfo; | 85 return sourceInfo; |
80 } | 86 } |
81 } | 87 } |
OLD | NEW |