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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/builder/ElementBuilder.java

Issue 244183002: Add ClassDeclaration/ClassTypeAlias.isAbstract() and use them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: forgotten class Created 6 years, 8 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 /* 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 interfaceType.setTypeArguments(typeArguments); 216 interfaceType.setTypeArguments(typeArguments);
217 element.setType(interfaceType); 217 element.setType(interfaceType);
218 218
219 ConstructorElement[] constructors = holder.getConstructors(); 219 ConstructorElement[] constructors = holder.getConstructors();
220 if (constructors.length == 0) { 220 if (constructors.length == 0) {
221 // 221 //
222 // Create the default constructor. 222 // Create the default constructor.
223 // 223 //
224 constructors = createDefaultConstructors(interfaceType); 224 constructors = createDefaultConstructors(interfaceType);
225 } 225 }
226 element.setAbstract(node.getAbstractKeyword() != null); 226 element.setAbstract(node.isAbstract());
227 element.setAccessors(holder.getAccessors()); 227 element.setAccessors(holder.getAccessors());
228 element.setConstructors(constructors); 228 element.setConstructors(constructors);
229 element.setFields(holder.getFields()); 229 element.setFields(holder.getFields());
230 element.setMethods(holder.getMethods()); 230 element.setMethods(holder.getMethods());
231 element.setTypeParameters(typeParameters); 231 element.setTypeParameters(typeParameters);
232 element.setValidMixin(isValidMixin); 232 element.setValidMixin(isValidMixin);
233 233
234 int functionTypeCount = functionTypesToFix.size(); 234 int functionTypeCount = functionTypesToFix.size();
235 for (int i = 0; i < functionTypeCount; i++) { 235 for (int i = 0; i < functionTypeCount; i++) {
236 functionTypesToFix.get(i).setTypeArguments(typeArguments); 236 functionTypesToFix.get(i).setTypeArguments(typeArguments);
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 ElementHolder previousHolder = currentHolder; 960 ElementHolder previousHolder = currentHolder;
961 currentHolder = holder; 961 currentHolder = holder;
962 try { 962 try {
963 node.visitChildren(this); 963 node.visitChildren(this);
964 } finally { 964 } finally {
965 currentHolder = previousHolder; 965 currentHolder = previousHolder;
966 } 966 }
967 } 967 }
968 } 968 }
969 } 969 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698