| 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/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3384 * | [ImportDirective] | 3384 * | [ImportDirective] |
| 3385 * | [LibraryDirective] | 3385 * | [LibraryDirective] |
| 3386 * | [PartDirective] | 3386 * | [PartDirective] |
| 3387 * | [PartOfDirective] | 3387 * | [PartOfDirective] |
| 3388 */ | 3388 */ |
| 3389 abstract class DirectiveImpl extends AnnotatedNodeImpl implements Directive { | 3389 abstract class DirectiveImpl extends AnnotatedNodeImpl implements Directive { |
| 3390 /** | 3390 /** |
| 3391 * The element associated with this directive, or `null` if the AST structure | 3391 * The element associated with this directive, or `null` if the AST structure |
| 3392 * has not been resolved or if this directive could not be resolved. | 3392 * has not been resolved or if this directive could not be resolved. |
| 3393 */ | 3393 */ |
| 3394 @override | 3394 Element _element; |
| 3395 Element element; | |
| 3396 | 3395 |
| 3397 /** | 3396 /** |
| 3398 * Initialize a newly create directive. Either or both of the [comment] and | 3397 * Initialize a newly create directive. Either or both of the [comment] and |
| 3399 * [metadata] can be `null` if the directive does not have the corresponding | 3398 * [metadata] can be `null` if the directive does not have the corresponding |
| 3400 * attribute. | 3399 * attribute. |
| 3401 */ | 3400 */ |
| 3402 DirectiveImpl(Comment comment, List<Annotation> metadata) | 3401 DirectiveImpl(Comment comment, List<Annotation> metadata) |
| 3403 : super(comment, metadata); | 3402 : super(comment, metadata); |
| 3403 |
| 3404 @override |
| 3405 Element get element => _element; |
| 3406 |
| 3407 /** |
| 3408 * Set the element associated with this directive to be the given [element]. |
| 3409 */ |
| 3410 void set element(Element element) { |
| 3411 _element = element; |
| 3412 } |
| 3404 } | 3413 } |
| 3405 | 3414 |
| 3406 /** | 3415 /** |
| 3407 * A do statement. | 3416 * A do statement. |
| 3408 * | 3417 * |
| 3409 * doStatement ::= | 3418 * doStatement ::= |
| 3410 * 'do' [Statement] 'while' '(' [Expression] ')' ';' | 3419 * 'do' [Statement] 'while' '(' [Expression] ')' ';' |
| 3411 */ | 3420 */ |
| 3412 class DoStatementImpl extends StatementImpl implements DoStatement { | 3421 class DoStatementImpl extends StatementImpl implements DoStatement { |
| 3413 /** | 3422 /** |
| (...skipping 7588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11002 | 11011 |
| 11003 @override | 11012 @override |
| 11004 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11013 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => |
| 11005 visitor.visitYieldStatement(this); | 11014 visitor.visitYieldStatement(this); |
| 11006 | 11015 |
| 11007 @override | 11016 @override |
| 11008 void visitChildren(AstVisitor visitor) { | 11017 void visitChildren(AstVisitor visitor) { |
| 11009 _expression?.accept(visitor); | 11018 _expression?.accept(visitor); |
| 11010 } | 11019 } |
| 11011 } | 11020 } |
| OLD | NEW |