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

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: Feedback from floitsch 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 * Different access from getSymbol() to help distinguish parts of an expression
55 * when walking a DartPropertyAccess.
56 */
53 public Element getTargetSymbol() { 57 public Element getTargetSymbol() {
54 return targetSymbol; 58 return targetSymbol;
55 } 59 }
56 60
57 @Override 61 @Override
58 public void setSymbol(Symbol symbol) { 62 public void setSymbol(Symbol symbol) {
59 this.targetSymbol = (Element) symbol; 63 this.targetSymbol = (Element) symbol;
60 } 64 }
61 65
62 @Override 66 @Override
(...skipping 14 matching lines...) Expand all
77 @Override 81 @Override
78 public void setReferencedElement(Element element) { 82 public void setReferencedElement(Element element) {
79 referencedElement = element; 83 referencedElement = element;
80 } 84 }
81 85
82 @Override 86 @Override
83 public Element getReferencedElement() { 87 public Element getReferencedElement() {
84 return referencedElement; 88 return referencedElement;
85 } 89 }
86 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698