| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analyzer.src.dart.ast.ast; | 5 library analyzer.src.dart.ast.ast; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/syntactic_entity.dart'; | 10 import 'package:analyzer/dart/ast/syntactic_entity.dart'; |
| (...skipping 4307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4318 /** | 4318 /** |
| 4319 * The declaration of one or more fields of the same type. | 4319 * The declaration of one or more fields of the same type. |
| 4320 * | 4320 * |
| 4321 * fieldDeclaration ::= | 4321 * fieldDeclaration ::= |
| 4322 * 'static'? [VariableDeclarationList] ';' | 4322 * 'static'? [VariableDeclarationList] ';' |
| 4323 */ | 4323 */ |
| 4324 class FieldDeclarationImpl extends ClassMemberImpl implements FieldDeclaration { | 4324 class FieldDeclarationImpl extends ClassMemberImpl implements FieldDeclaration { |
| 4325 /** | 4325 /** |
| 4326 * The 'covariant' keyword, or `null` if the keyword was not used. | 4326 * The 'covariant' keyword, or `null` if the keyword was not used. |
| 4327 */ | 4327 */ |
| 4328 @override |
| 4328 Token covariantKeyword; | 4329 Token covariantKeyword; |
| 4329 | 4330 |
| 4330 /** | 4331 /** |
| 4331 * The token representing the 'static' keyword, or `null` if the fields are | 4332 * The token representing the 'static' keyword, or `null` if the fields are |
| 4332 * not static. | 4333 * not static. |
| 4333 */ | 4334 */ |
| 4334 @override | 4335 @override |
| 4335 Token staticKeyword; | 4336 Token staticKeyword; |
| 4336 | 4337 |
| 4337 /** | 4338 /** |
| 4338 * The fields being declared. | 4339 * The fields being declared. |
| 4339 */ | 4340 */ |
| 4340 VariableDeclarationList _fieldList; | 4341 VariableDeclarationList _fieldList; |
| 4341 | 4342 |
| 4342 /** | 4343 /** |
| 4343 * The semicolon terminating the declaration. | 4344 * The semicolon terminating the declaration. |
| 4344 */ | 4345 */ |
| 4345 @override | 4346 @override |
| 4346 Token semicolon; | 4347 Token semicolon; |
| 4347 | 4348 |
| 4348 /** | 4349 /** |
| 4349 * Initialize a newly created field declaration. Either or both of the | 4350 * Initialize a newly created field declaration. Either or both of the |
| 4350 * [comment] and [metadata] can be `null` if the declaration does not have the | 4351 * [comment] and [metadata] can be `null` if the declaration does not have the |
| 4351 * corresponding attribute. The [staticKeyword] can be `null` if the field is | 4352 * corresponding attribute. The [staticKeyword] can be `null` if the field is |
| 4352 * not a static field. | 4353 * not a static field. |
| 4353 */ | 4354 */ |
| 4354 FieldDeclarationImpl(CommentImpl comment, List<Annotation> metadata, | 4355 FieldDeclarationImpl( |
| 4355 this.staticKeyword, VariableDeclarationListImpl fieldList, this.semicolon) | 4356 CommentImpl comment, |
| 4357 List<Annotation> metadata, |
| 4358 this.covariantKeyword, |
| 4359 this.staticKeyword, |
| 4360 VariableDeclarationListImpl fieldList, |
| 4361 this.semicolon) |
| 4356 : super(comment, metadata) { | 4362 : super(comment, metadata) { |
| 4357 _fieldList = _becomeParentOf(fieldList); | 4363 _fieldList = _becomeParentOf(fieldList); |
| 4358 } | 4364 } |
| 4359 | 4365 |
| 4360 @override | 4366 @override |
| 4361 Iterable<SyntacticEntity> get childEntities => | 4367 Iterable<SyntacticEntity> get childEntities => |
| 4362 super._childEntities..add(staticKeyword)..add(_fieldList)..add(semicolon); | 4368 super._childEntities..add(staticKeyword)..add(_fieldList)..add(semicolon); |
| 4363 | 4369 |
| 4364 @override | 4370 @override |
| 4365 Element get element => null; | 4371 Element get element => null; |
| (...skipping 7109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11475 | 11481 |
| 11476 @override | 11482 @override |
| 11477 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11483 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => |
| 11478 visitor.visitYieldStatement(this); | 11484 visitor.visitYieldStatement(this); |
| 11479 | 11485 |
| 11480 @override | 11486 @override |
| 11481 void visitChildren(AstVisitor visitor) { | 11487 void visitChildren(AstVisitor visitor) { |
| 11482 _expression?.accept(visitor); | 11488 _expression?.accept(visitor); |
| 11483 } | 11489 } |
| 11484 } | 11490 } |
| OLD | NEW |