| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 public boolean isAccessibleIn(LibraryElement library) { | 193 public boolean isAccessibleIn(LibraryElement library) { |
| 194 for (Element element : conflictingElements) { | 194 for (Element element : conflictingElements) { |
| 195 if (element.isAccessibleIn(library)) { | 195 if (element.isAccessibleIn(library)) { |
| 196 return true; | 196 return true; |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 return false; | 199 return false; |
| 200 } | 200 } |
| 201 | 201 |
| 202 @Override | 202 @Override |
| 203 public boolean isDeprecated() { |
| 204 return false; |
| 205 } |
| 206 |
| 207 @Override |
| 203 public boolean isSynthetic() { | 208 public boolean isSynthetic() { |
| 204 return true; | 209 return true; |
| 205 } | 210 } |
| 206 | 211 |
| 207 @Override | 212 @Override |
| 208 public String toString() { | 213 public String toString() { |
| 209 StringBuilder builder = new StringBuilder(); | 214 StringBuilder builder = new StringBuilder(); |
| 210 builder.append("["); | 215 builder.append("["); |
| 211 int count = conflictingElements.length; | 216 int count = conflictingElements.length; |
| 212 for (int i = 0; i < count; i++) { | 217 for (int i = 0; i < count; i++) { |
| 213 if (i > 0) { | 218 if (i > 0) { |
| 214 builder.append(", "); | 219 builder.append(", "); |
| 215 } | 220 } |
| 216 ((ElementImpl) conflictingElements[i]).appendTo(builder); | 221 ((ElementImpl) conflictingElements[i]).appendTo(builder); |
| 217 } | 222 } |
| 218 builder.append("]"); | 223 builder.append("]"); |
| 219 return builder.toString(); | 224 return builder.toString(); |
| 220 } | 225 } |
| 221 | 226 |
| 222 @Override | 227 @Override |
| 223 public void visitChildren(ElementVisitor<?> visitor) { | 228 public void visitChildren(ElementVisitor<?> visitor) { |
| 224 // There are no children to visit | 229 // There are no children to visit |
| 225 } | 230 } |
| 226 } | 231 } |
| OLD | NEW |