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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/ast.dart

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.ast; 3 library engine.ast;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_engine.dart'; 6 import 'java_engine.dart';
7 import 'error.dart'; 7 import 'error.dart';
8 import 'source.dart' show LineInfo; 8 import 'source.dart' show LineInfo;
9 import 'scanner.dart'; 9 import 'scanner.dart';
10 import 'engine.dart' show AnalysisEngine; 10 import 'engine.dart' show AnalysisEngine;
(...skipping 2757 matching lines...) Expand 10 before | Expand all | Expand 10 after
2768 static final List<CommentType> values = [END_OF_LINE, BLOCK, DOCUMENTATION]; 2768 static final List<CommentType> values = [END_OF_LINE, BLOCK, DOCUMENTATION];
2769 2769
2770 /// The name of this enum constant, as declared in the enum declaration. 2770 /// The name of this enum constant, as declared in the enum declaration.
2771 final String name; 2771 final String name;
2772 2772
2773 /// The position in the enum declaration. 2773 /// The position in the enum declaration.
2774 final int ordinal; 2774 final int ordinal;
2775 CommentType(this.name, this.ordinal) { 2775 CommentType(this.name, this.ordinal) {
2776 } 2776 }
2777 int compareTo(CommentType other) => ordinal - other.ordinal; 2777 int compareTo(CommentType other) => ordinal - other.ordinal;
2778 int get hashCode => ordinal;
2778 String toString() => name; 2779 String toString() => name;
2779 } 2780 }
2780 /** 2781 /**
2781 * Instances of the class {@code CommentReference} represent a reference to a Da rt element that is 2782 * Instances of the class {@code CommentReference} represent a reference to a Da rt element that is
2782 * found within a documentation comment. 2783 * found within a documentation comment.
2783 * <pre> 2784 * <pre>
2784 * commentReference ::= 2785 * commentReference ::=
2785 * '\[' 'new'? {@link Identifier identifier} '\]' 2786 * '\[' 'new'? {@link Identifier identifier} '\]'
2786 * </pre> 2787 * </pre>
2787 * @coverage dart.engine.ast 2788 * @coverage dart.engine.ast
(...skipping 9857 matching lines...) Expand 10 before | Expand all | Expand 10 after
12645 /** 12646 /**
12646 * Initialize a newly created variable declaration. 12647 * Initialize a newly created variable declaration.
12647 * @param comment the documentation comment associated with this declaration 12648 * @param comment the documentation comment associated with this declaration
12648 * @param metadata the annotations associated with this member 12649 * @param metadata the annotations associated with this member
12649 * @param name the name of the variable being declared 12650 * @param name the name of the variable being declared
12650 * @param equals the equal sign separating the variable name from the initial value 12651 * @param equals the equal sign separating the variable name from the initial value
12651 * @param initializer the expression used to compute the initial value for the variable 12652 * @param initializer the expression used to compute the initial value for the variable
12652 */ 12653 */
12653 VariableDeclaration({Comment comment, List<Annotation> metadata, SimpleIdentif ier name, Token equals, Expression initializer}) : this.full(comment, metadata, name, equals, initializer); 12654 VariableDeclaration({Comment comment, List<Annotation> metadata, SimpleIdentif ier name, Token equals, Expression initializer}) : this.full(comment, metadata, name, equals, initializer);
12654 accept(ASTVisitor visitor) => visitor.visitVariableDeclaration(this); 12655 accept(ASTVisitor visitor) => visitor.visitVariableDeclaration(this);
12656
12657 /**
12658 * This overridden implementation of getDocumentationComment() looks in the gr andparent node for
12659 * dartdoc comments if no documentation is specifically available on the node.
12660 */
12661 Comment get documentationComment {
12662 Comment comment = super.documentationComment;
12663 if (comment == null) {
12664 if (parent != null && parent.parent != null) {
12665 ASTNode node = parent.parent;
12666 if (node is AnnotatedNode) {
12667 return ((node as AnnotatedNode)).documentationComment;
12668 }
12669 }
12670 }
12671 return comment;
12672 }
12655 VariableElement get element => _name != null ? (_name.element as VariableEleme nt) : null; 12673 VariableElement get element => _name != null ? (_name.element as VariableEleme nt) : null;
12656 Token get endToken { 12674 Token get endToken {
12657 if (_initializer != null) { 12675 if (_initializer != null) {
12658 return _initializer.endToken; 12676 return _initializer.endToken;
12659 } 12677 }
12660 return _name.endToken; 12678 return _name.endToken;
12661 } 12679 }
12662 12680
12663 /** 12681 /**
12664 * Return the equal sign separating the variable name from the initial value, or {@code null} if 12682 * Return the equal sign separating the variable name from the initial value, or {@code null} if
(...skipping 2789 matching lines...) Expand 10 before | Expand all | Expand 10 after
15454 return elements[elements.length - 1].endToken; 15472 return elements[elements.length - 1].endToken;
15455 } 15473 }
15456 /** 15474 /**
15457 * Return the node that is the parent of each of the elements in the list. 15475 * Return the node that is the parent of each of the elements in the list.
15458 * @return the node that is the parent of each of the elements in the list 15476 * @return the node that is the parent of each of the elements in the list
15459 */ 15477 */
15460 ASTNode getOwner() { 15478 ASTNode getOwner() {
15461 return owner; 15479 return owner;
15462 } 15480 }
15463 } 15481 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698