OLD | NEW |
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 private static ImageDescriptor getImageDescriptor(AstNode node, boolean isPr
ivate) { | 231 private static ImageDescriptor getImageDescriptor(AstNode node, boolean isPr
ivate) { |
232 ImageDescriptor base = getBaseImageDescriptor(node, isPrivate); | 232 ImageDescriptor base = getBaseImageDescriptor(node, isPrivate); |
233 if (base == null) { | 233 if (base == null) { |
234 return null; | 234 return null; |
235 } | 235 } |
236 int flags = 0; | 236 int flags = 0; |
237 // ClassDeclaration | 237 // ClassDeclaration |
238 if (node instanceof ClassDeclaration) { | 238 if (node instanceof ClassDeclaration) { |
239 ClassDeclaration classDeclaration = (ClassDeclaration) node; | 239 ClassDeclaration classDeclaration = (ClassDeclaration) node; |
240 if (classDeclaration.getAbstractKeyword() != null) { | 240 if (classDeclaration.isAbstract()) { |
241 flags |= DartElementImageDescriptor.ABSTRACT; | 241 flags |= DartElementImageDescriptor.ABSTRACT; |
242 } | 242 } |
243 } | 243 } |
244 // ConstructorDeclaration | 244 // ConstructorDeclaration |
245 if (node instanceof ConstructorDeclaration) { | 245 if (node instanceof ConstructorDeclaration) { |
246 flags |= DartElementImageDescriptor.CONSTRUCTOR; | 246 flags |= DartElementImageDescriptor.CONSTRUCTOR; |
247 } | 247 } |
248 // MethodDeclaration | 248 // MethodDeclaration |
249 if (node instanceof MethodDeclaration) { | 249 if (node instanceof MethodDeclaration) { |
250 MethodDeclaration method = (MethodDeclaration) node; | 250 MethodDeclaration method = (MethodDeclaration) node; |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 } | 637 } |
638 // expand children | 638 // expand children |
639 nanoBudget = expandTreeItemsTimeBoxed(viewer, item.getItems(), childrenLim
it, nanoBudget); | 639 nanoBudget = expandTreeItemsTimeBoxed(viewer, item.getItems(), childrenLim
it, nanoBudget); |
640 if (nanoBudget < 0) { | 640 if (nanoBudget < 0) { |
641 break; | 641 break; |
642 } | 642 } |
643 } | 643 } |
644 return nanoBudget; | 644 return nanoBudget; |
645 } | 645 } |
646 } | 646 } |
OLD | NEW |