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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.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 2012, the Dart project authors. 2 * Copyright 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 /** 166 /**
167 * Return the with clause for this class. 167 * Return the with clause for this class.
168 * 168 *
169 * @return the with clause for this class 169 * @return the with clause for this class
170 */ 170 */
171 public WithClause getWithClause() { 171 public WithClause getWithClause() {
172 return withClause; 172 return withClause;
173 } 173 }
174 174
175 /** 175 /**
176 * Return {@code true} if this class is declared to be an abstract class.
177 *
178 * @return {@code true} if this class is declared to be an abstract class
179 */
180 public boolean isAbstract() {
181 return abstractKeyword != null;
182 }
183
184 /**
176 * Set the token for the 'abstract' keyword to the given token. 185 * Set the token for the 'abstract' keyword to the given token.
177 * 186 *
178 * @param abstractKeyword the token for the 'abstract' keyword 187 * @param abstractKeyword the token for the 'abstract' keyword
179 */ 188 */
180 public void setAbstractKeyword(Token abstractKeyword) { 189 public void setAbstractKeyword(Token abstractKeyword) {
181 this.abstractKeyword = abstractKeyword; 190 this.abstractKeyword = abstractKeyword;
182 } 191 }
183 192
184 /** 193 /**
185 * Set the token for the '=' separating the name from the definition to the gi ven token. 194 * Set the token for the '=' separating the name from the definition to the gi ven token.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 @Override 247 @Override
239 public void visitChildren(AstVisitor<?> visitor) { 248 public void visitChildren(AstVisitor<?> visitor) {
240 super.visitChildren(visitor); 249 super.visitChildren(visitor);
241 safelyVisitChild(name, visitor); 250 safelyVisitChild(name, visitor);
242 safelyVisitChild(typeParameters, visitor); 251 safelyVisitChild(typeParameters, visitor);
243 safelyVisitChild(superclass, visitor); 252 safelyVisitChild(superclass, visitor);
244 safelyVisitChild(withClause, visitor); 253 safelyVisitChild(withClause, visitor);
245 safelyVisitChild(implementsClause, visitor); 254 safelyVisitChild(implementsClause, visitor);
246 } 255 }
247 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698