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

Side by Side Diff: compiler/java/com/google/dart/compiler/ast/DartIdentifier.java

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Renamed CompileTimeConstTest to CTConst2Test Created 9 years, 2 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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.ast; 5 package com.google.dart.compiler.ast;
6 6
7 import com.google.dart.compiler.common.Symbol; 7 import com.google.dart.compiler.common.Symbol;
8 import com.google.dart.compiler.resolver.Element; 8 import com.google.dart.compiler.resolver.Element;
9 9
10 /** 10 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 @Override 44 @Override
45 public boolean isAssignable() { 45 public boolean isAssignable() {
46 return true; 46 return true;
47 } 47 }
48 48
49 public String getTargetName() { 49 public String getTargetName() {
50 return targetName; 50 return targetName;
51 } 51 }
52 52
53 /**
54 * TODO(zundel): I'm pretty sure getTargetSymbol() is vestigal: getSymbol() is used elsewhere.
floitsch 2011/10/14 14:36:58 Cannot comment on this. Please get Fabio (or someb
55 *
56 * @deprecated use {@link #getSymbol()}
57 * @return
58 */
59 @Deprecated
zundel 2011/10/14 20:59:52 Fabio gave me some background so I added a comment
53 public Element getTargetSymbol() { 60 public Element getTargetSymbol() {
54 return targetSymbol; 61 return targetSymbol;
55 } 62 }
56 63
57 @Override 64 @Override
58 public void setSymbol(Symbol symbol) { 65 public void setSymbol(Symbol symbol) {
59 this.targetSymbol = (Element) symbol; 66 this.targetSymbol = (Element) symbol;
60 } 67 }
61 68
62 @Override 69 @Override
(...skipping 14 matching lines...) Expand all
77 @Override 84 @Override
78 public void setReferencedElement(Element element) { 85 public void setReferencedElement(Element element) {
79 referencedElement = element; 86 referencedElement = element;
80 } 87 }
81 88
82 @Override 89 @Override
83 public Element getReferencedElement() { 90 public Element getReferencedElement() {
84 return referencedElement; 91 return referencedElement;
85 } 92 }
86 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698