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

Side by Side Diff: dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/handle/ElementHandle.java

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. 2 * Copyright (c) 2013, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 public int hashCode() { 216 public int hashCode() {
217 return location.hashCode(); 217 return location.hashCode();
218 } 218 }
219 219
220 @Override 220 @Override
221 public boolean isAccessibleIn(LibraryElement library) { 221 public boolean isAccessibleIn(LibraryElement library) {
222 return getActualElement().isAccessibleIn(library); 222 return getActualElement().isAccessibleIn(library);
223 } 223 }
224 224
225 @Override 225 @Override
226 public boolean isDeprecated() {
227 return getActualElement().isDeprecated();
228 }
229
230 @Override
226 public boolean isSynthetic() { 231 public boolean isSynthetic() {
227 return getActualElement().isSynthetic(); 232 return getActualElement().isSynthetic();
228 } 233 }
229 234
230 @Override 235 @Override
231 public void visitChildren(ElementVisitor<?> visitor) { 236 public void visitChildren(ElementVisitor<?> visitor) {
232 getActualElement().visitChildren(visitor); 237 getActualElement().visitChildren(visitor);
233 } 238 }
234 239
235 /** 240 /**
236 * Return the element being represented by this handle, reconstituting the ele ment if the 241 * Return the element being represented by this handle, reconstituting the ele ment if the
237 * reference has been set to {@code null}. 242 * reference has been set to {@code null}.
238 * 243 *
239 * @return the element being represented by this handle 244 * @return the element being represented by this handle
240 */ 245 */
241 protected Element getActualElement() { 246 protected Element getActualElement() {
242 Element element = elementReference.get(); 247 Element element = elementReference.get();
243 if (element == null) { 248 if (element == null) {
244 element = context.getElement(location); 249 element = context.getElement(location);
245 elementReference = new WeakReference<Element>(element); 250 elementReference = new WeakReference<Element>(element);
246 } 251 }
247 return element; 252 return element;
248 } 253 }
249 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698