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.annotations.VisibleForTesting; | 7 import com.google.common.annotations.VisibleForTesting; |
8 import com.google.common.collect.Lists; | 8 import com.google.common.collect.Lists; |
9 import com.google.common.collect.Maps; | 9 import com.google.common.collect.Maps; |
10 import com.google.common.collect.Sets; | 10 import com.google.common.collect.Sets; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 return null; | 237 return null; |
238 } | 238 } |
239 | 239 |
240 @Override | 240 @Override |
241 public Void visitField(DartField node) { | 241 public Void visitField(DartField node) { |
242 Modifiers modifiers = node.getModifiers(); | 242 Modifiers modifiers = node.getModifiers(); |
243 if (modifiers.isFinal()) { | 243 if (modifiers.isFinal()) { |
244 // final top-level fields are implicitly compile-time constants. | 244 // final top-level fields are implicitly compile-time constants. |
245 modifiers = modifiers.makeConstant(); | 245 modifiers = modifiers.makeConstant(); |
246 } | 246 } |
247 node.setElement(Elements.fieldFromNode(node, library, node.getMetadata(),
modifiers)); | 247 node.setElement(Elements.fieldFromNode(node, library, node.getObsoleteMeta
data(), modifiers)); |
248 return null; | 248 return null; |
249 } | 249 } |
250 } | 250 } |
251 } | 251 } |
OLD | NEW |