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

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

Issue 198453002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 // 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.ast; 8 library engine.ast;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
11 import 'java_core.dart'; 11 import 'java_core.dart';
12 import 'java_engine.dart'; 12 import 'java_engine.dart';
13 import 'source.dart' show LineInfo; 13 import 'source.dart' show LineInfo, Source;
14 import 'scanner.dart'; 14 import 'scanner.dart';
15 import 'engine.dart' show AnalysisEngine; 15 import 'engine.dart' show AnalysisEngine;
16 import 'utilities_dart.dart'; 16 import 'utilities_dart.dart';
17 import 'utilities_collection.dart' show TokenMap; 17 import 'utilities_collection.dart' show TokenMap;
18 import 'element.dart'; 18 import 'element.dart';
19 19
20 /** 20 /**
21 * Instances of the class `AdjacentStrings` represents two or more string litera ls that are 21 * Instances of the class `AdjacentStrings` represents two or more string litera ls that are
22 * implicitly concatenated because of being adjacent (separated only by whitespa ce). 22 * implicitly concatenated because of being adjacent (separated only by whitespa ce).
23 * 23 *
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 */ 246 */
247 ArgumentList _arguments; 247 ArgumentList _arguments;
248 248
249 /** 249 /**
250 * The element associated with this annotation, or `null` if the AST structure has not been 250 * The element associated with this annotation, or `null` if the AST structure has not been
251 * resolved or if this annotation could not be resolved. 251 * resolved or if this annotation could not be resolved.
252 */ 252 */
253 Element _element; 253 Element _element;
254 254
255 /** 255 /**
256 * The element annotation representing this annotation in the element model.
257 */
258 ElementAnnotation elementAnnotation;
259
260 /**
256 * Initialize a newly created annotation. 261 * Initialize a newly created annotation.
257 * 262 *
258 * @param atSign the at sign that introduced the annotation 263 * @param atSign the at sign that introduced the annotation
259 * @param name the name of the class defining the constructor that is being in voked or the name of 264 * @param name the name of the class defining the constructor that is being in voked or the name of
260 * the field that is being referenced 265 * the field that is being referenced
261 * @param period the period before the constructor name, or `null` if this ann otation is not 266 * @param period the period before the constructor name, or `null` if this ann otation is not
262 * the invocation of a named constructor 267 * the invocation of a named constructor
263 * @param constructorName the name of the constructor being invoked, or `null` if this 268 * @param constructorName the name of the constructor being invoked, or `null` if this
264 * annotation is not the invocation of a named constructor 269 * annotation is not the invocation of a named constructor
265 * @param arguments the arguments to the constructor being invoked, or `null` if this 270 * @param arguments the arguments to the constructor being invoked, or `null` if this
(...skipping 11372 matching lines...) Expand 10 before | Expand all | Expand 10 after
11638 * | [PartDirective] 11643 * | [PartDirective]
11639 * </pre> 11644 * </pre>
11640 */ 11645 */
11641 abstract class UriBasedDirective extends Directive { 11646 abstract class UriBasedDirective extends Directive {
11642 /** 11647 /**
11643 * The URI referenced by this directive. 11648 * The URI referenced by this directive.
11644 */ 11649 */
11645 StringLiteral _uri; 11650 StringLiteral _uri;
11646 11651
11647 /** 11652 /**
11653 * The content of the URI.
11654 */
11655 String uriContent;
11656
11657 /**
11658 * The source to which the URI was resolved.
11659 */
11660 Source source;
11661
11662 /**
11648 * Initialize a newly create URI-based directive. 11663 * Initialize a newly create URI-based directive.
11649 * 11664 *
11650 * @param comment the documentation comment associated with this directive 11665 * @param comment the documentation comment associated with this directive
11651 * @param metadata the annotations associated with the directive 11666 * @param metadata the annotations associated with the directive
11652 * @param uri the URI referenced by this directive 11667 * @param uri the URI referenced by this directive
11653 */ 11668 */
11654 UriBasedDirective(Comment comment, List<Annotation> metadata, StringLiteral ur i) : super(comment, metadata) { 11669 UriBasedDirective(Comment comment, List<Annotation> metadata, StringLiteral ur i) : super(comment, metadata) {
11655 this._uri = becomeParentOf(uri); 11670 this._uri = becomeParentOf(uri);
11656 } 11671 }
11657 11672
11658 /** 11673 /**
11659 * Return the URI referenced by this directive. 11674 * Return the URI referenced by this directive.
11660 * 11675 *
11661 * @return the URI referenced by this directive 11676 * @return the URI referenced by this directive
11662 */ 11677 */
11663 StringLiteral get uri => _uri; 11678 StringLiteral get uri => _uri;
11664 11679
11665 /** 11680 /**
11666 * Return the element associated with the URI of this directive, or `null` if the AST 11681 * Return the element associated with the URI of this directive, or `null` if the AST
11667 * structure has not been resolved or if this URI could not be resolved. Examp les of the latter 11682 * structure has not been resolved or if the URI could not be resolved. Exampl es of the latter
11668 * case include a directive that contains an invalid URL or a URL that does no t exist. 11683 * case include a directive that contains an invalid URL or a URL that does no t exist.
11669 * 11684 *
11670 * @return the element associated with this directive 11685 * @return the element associated with this directive
11671 */ 11686 */
11672 Element get uriElement; 11687 Element get uriElement;
11673 11688
11674 /** 11689 /**
11675 * Set the URI referenced by this directive to the given URI. 11690 * Set the URI referenced by this directive to the given URI.
11676 * 11691 *
11677 * @param uri the URI referenced by this directive 11692 * @param uri the URI referenced by this directive
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
14304 _writer.print(") "); 14319 _writer.print(") ");
14305 } else { 14320 } else {
14306 _writer.print(" "); 14321 _writer.print(" ");
14307 } 14322 }
14308 _visitNode(node.body); 14323 _visitNode(node.body);
14309 return null; 14324 return null;
14310 } 14325 }
14311 14326
14312 @override 14327 @override
14313 Object visitClassDeclaration(ClassDeclaration node) { 14328 Object visitClassDeclaration(ClassDeclaration node) {
14329 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14314 _visitTokenWithSuffix(node.abstractKeyword, " "); 14330 _visitTokenWithSuffix(node.abstractKeyword, " ");
14315 _writer.print("class "); 14331 _writer.print("class ");
14316 _visitNode(node.name); 14332 _visitNode(node.name);
14317 _visitNode(node.typeParameters); 14333 _visitNode(node.typeParameters);
14318 _visitNodeWithPrefix(" ", node.extendsClause); 14334 _visitNodeWithPrefix(" ", node.extendsClause);
14319 _visitNodeWithPrefix(" ", node.withClause); 14335 _visitNodeWithPrefix(" ", node.withClause);
14320 _visitNodeWithPrefix(" ", node.implementsClause); 14336 _visitNodeWithPrefix(" ", node.implementsClause);
14321 _writer.print(" {"); 14337 _writer.print(" {");
14322 _visitNodeListWithSeparator(node.members, " "); 14338 _visitNodeListWithSeparator(node.members, " ");
14323 _writer.print("}"); 14339 _writer.print("}");
14324 return null; 14340 return null;
14325 } 14341 }
14326 14342
14327 @override 14343 @override
14328 Object visitClassTypeAlias(ClassTypeAlias node) { 14344 Object visitClassTypeAlias(ClassTypeAlias node) {
14345 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14329 if (node.abstractKeyword != null) { 14346 if (node.abstractKeyword != null) {
14330 _writer.print("abstract "); 14347 _writer.print("abstract ");
14331 } 14348 }
14332 _writer.print("class "); 14349 _writer.print("class ");
14333 _visitNode(node.name); 14350 _visitNode(node.name);
14334 _visitNode(node.typeParameters); 14351 _visitNode(node.typeParameters);
14335 _writer.print(" = "); 14352 _writer.print(" = ");
14336 _visitNode(node.superclass); 14353 _visitNode(node.superclass);
14337 _visitNodeWithPrefix(" ", node.withClause); 14354 _visitNodeWithPrefix(" ", node.withClause);
14338 _visitNodeWithPrefix(" ", node.implementsClause); 14355 _visitNodeWithPrefix(" ", node.implementsClause);
(...skipping 24 matching lines...) Expand all
14363 _visitNode(node.condition); 14380 _visitNode(node.condition);
14364 _writer.print(" ? "); 14381 _writer.print(" ? ");
14365 _visitNode(node.thenExpression); 14382 _visitNode(node.thenExpression);
14366 _writer.print(" : "); 14383 _writer.print(" : ");
14367 _visitNode(node.elseExpression); 14384 _visitNode(node.elseExpression);
14368 return null; 14385 return null;
14369 } 14386 }
14370 14387
14371 @override 14388 @override
14372 Object visitConstructorDeclaration(ConstructorDeclaration node) { 14389 Object visitConstructorDeclaration(ConstructorDeclaration node) {
14390 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14373 _visitTokenWithSuffix(node.externalKeyword, " "); 14391 _visitTokenWithSuffix(node.externalKeyword, " ");
14374 _visitTokenWithSuffix(node.constKeyword, " "); 14392 _visitTokenWithSuffix(node.constKeyword, " ");
14375 _visitTokenWithSuffix(node.factoryKeyword, " "); 14393 _visitTokenWithSuffix(node.factoryKeyword, " ");
14376 _visitNode(node.returnType); 14394 _visitNode(node.returnType);
14377 _visitNodeWithPrefix(".", node.name); 14395 _visitNodeWithPrefix(".", node.name);
14378 _visitNode(node.parameters); 14396 _visitNode(node.parameters);
14379 _visitNodeListWithSeparatorAndPrefix(" : ", node.initializers, ", "); 14397 _visitNodeListWithSeparatorAndPrefix(" : ", node.initializers, ", ");
14380 _visitNodeWithPrefix(" = ", node.redirectedConstructor); 14398 _visitNodeWithPrefix(" = ", node.redirectedConstructor);
14381 _visitFunctionWithPrefix(" ", node.body); 14399 _visitFunctionWithPrefix(" ", node.body);
14382 return null; 14400 return null;
(...skipping 18 matching lines...) Expand all
14401 @override 14419 @override
14402 Object visitContinueStatement(ContinueStatement node) { 14420 Object visitContinueStatement(ContinueStatement node) {
14403 _writer.print("continue"); 14421 _writer.print("continue");
14404 _visitNodeWithPrefix(" ", node.label); 14422 _visitNodeWithPrefix(" ", node.label);
14405 _writer.print(";"); 14423 _writer.print(";");
14406 return null; 14424 return null;
14407 } 14425 }
14408 14426
14409 @override 14427 @override
14410 Object visitDeclaredIdentifier(DeclaredIdentifier node) { 14428 Object visitDeclaredIdentifier(DeclaredIdentifier node) {
14429 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14411 _visitTokenWithSuffix(node.keyword, " "); 14430 _visitTokenWithSuffix(node.keyword, " ");
14412 _visitNodeWithSuffix(node.type, " "); 14431 _visitNodeWithSuffix(node.type, " ");
14413 _visitNode(node.identifier); 14432 _visitNode(node.identifier);
14414 return null; 14433 return null;
14415 } 14434 }
14416 14435
14417 @override 14436 @override
14418 Object visitDefaultFormalParameter(DefaultFormalParameter node) { 14437 Object visitDefaultFormalParameter(DefaultFormalParameter node) {
14419 _visitNode(node.parameter); 14438 _visitNode(node.parameter);
14420 if (node.separator != null) { 14439 if (node.separator != null) {
(...skipping 27 matching lines...) Expand all
14448 } 14467 }
14449 14468
14450 @override 14469 @override
14451 Object visitEmptyStatement(EmptyStatement node) { 14470 Object visitEmptyStatement(EmptyStatement node) {
14452 _writer.print(';'); 14471 _writer.print(';');
14453 return null; 14472 return null;
14454 } 14473 }
14455 14474
14456 @override 14475 @override
14457 Object visitExportDirective(ExportDirective node) { 14476 Object visitExportDirective(ExportDirective node) {
14477 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14458 _writer.print("export "); 14478 _writer.print("export ");
14459 _visitNode(node.uri); 14479 _visitNode(node.uri);
14460 _visitNodeListWithSeparatorAndPrefix(" ", node.combinators, " "); 14480 _visitNodeListWithSeparatorAndPrefix(" ", node.combinators, " ");
14461 _writer.print(';'); 14481 _writer.print(';');
14462 return null; 14482 return null;
14463 } 14483 }
14464 14484
14465 @override 14485 @override
14466 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { 14486 Object visitExpressionFunctionBody(ExpressionFunctionBody node) {
14467 _writer.print("=> "); 14487 _writer.print("=> ");
(...skipping 13 matching lines...) Expand all
14481 14501
14482 @override 14502 @override
14483 Object visitExtendsClause(ExtendsClause node) { 14503 Object visitExtendsClause(ExtendsClause node) {
14484 _writer.print("extends "); 14504 _writer.print("extends ");
14485 _visitNode(node.superclass); 14505 _visitNode(node.superclass);
14486 return null; 14506 return null;
14487 } 14507 }
14488 14508
14489 @override 14509 @override
14490 Object visitFieldDeclaration(FieldDeclaration node) { 14510 Object visitFieldDeclaration(FieldDeclaration node) {
14511 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14491 _visitTokenWithSuffix(node.staticKeyword, " "); 14512 _visitTokenWithSuffix(node.staticKeyword, " ");
14492 _visitNode(node.fields); 14513 _visitNode(node.fields);
14493 _writer.print(";"); 14514 _writer.print(";");
14494 return null; 14515 return null;
14495 } 14516 }
14496 14517
14497 @override 14518 @override
14498 Object visitFieldFormalParameter(FieldFormalParameter node) { 14519 Object visitFieldFormalParameter(FieldFormalParameter node) {
14499 _visitTokenWithSuffix(node.keyword, " "); 14520 _visitTokenWithSuffix(node.keyword, " ");
14500 _visitNodeWithSuffix(node.type, " "); 14521 _visitNodeWithSuffix(node.type, " ");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
14562 _visitNodeWithPrefix(" ", node.condition); 14583 _visitNodeWithPrefix(" ", node.condition);
14563 _writer.print(";"); 14584 _writer.print(";");
14564 _visitNodeListWithSeparatorAndPrefix(" ", node.updaters, ", "); 14585 _visitNodeListWithSeparatorAndPrefix(" ", node.updaters, ", ");
14565 _writer.print(") "); 14586 _writer.print(") ");
14566 _visitNode(node.body); 14587 _visitNode(node.body);
14567 return null; 14588 return null;
14568 } 14589 }
14569 14590
14570 @override 14591 @override
14571 Object visitFunctionDeclaration(FunctionDeclaration node) { 14592 Object visitFunctionDeclaration(FunctionDeclaration node) {
14593 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14572 _visitNodeWithSuffix(node.returnType, " "); 14594 _visitNodeWithSuffix(node.returnType, " ");
14573 _visitTokenWithSuffix(node.propertyKeyword, " "); 14595 _visitTokenWithSuffix(node.propertyKeyword, " ");
14574 _visitNode(node.name); 14596 _visitNode(node.name);
14575 _visitNode(node.functionExpression); 14597 _visitNode(node.functionExpression);
14576 return null; 14598 return null;
14577 } 14599 }
14578 14600
14579 @override 14601 @override
14580 Object visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { 14602 Object visitFunctionDeclarationStatement(FunctionDeclarationStatement node) {
14581 _visitNode(node.functionDeclaration); 14603 _visitNode(node.functionDeclaration);
(...skipping 11 matching lines...) Expand all
14593 14615
14594 @override 14616 @override
14595 Object visitFunctionExpressionInvocation(FunctionExpressionInvocation node) { 14617 Object visitFunctionExpressionInvocation(FunctionExpressionInvocation node) {
14596 _visitNode(node.function); 14618 _visitNode(node.function);
14597 _visitNode(node.argumentList); 14619 _visitNode(node.argumentList);
14598 return null; 14620 return null;
14599 } 14621 }
14600 14622
14601 @override 14623 @override
14602 Object visitFunctionTypeAlias(FunctionTypeAlias node) { 14624 Object visitFunctionTypeAlias(FunctionTypeAlias node) {
14625 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14603 _writer.print("typedef "); 14626 _writer.print("typedef ");
14604 _visitNodeWithSuffix(node.returnType, " "); 14627 _visitNodeWithSuffix(node.returnType, " ");
14605 _visitNode(node.name); 14628 _visitNode(node.name);
14606 _visitNode(node.typeParameters); 14629 _visitNode(node.typeParameters);
14607 _visitNode(node.parameters); 14630 _visitNode(node.parameters);
14608 _writer.print(";"); 14631 _writer.print(";");
14609 return null; 14632 return null;
14610 } 14633 }
14611 14634
14612 @override 14635 @override
(...skipping 23 matching lines...) Expand all
14636 14659
14637 @override 14660 @override
14638 Object visitImplementsClause(ImplementsClause node) { 14661 Object visitImplementsClause(ImplementsClause node) {
14639 _writer.print("implements "); 14662 _writer.print("implements ");
14640 _visitNodeListWithSeparator(node.interfaces, ", "); 14663 _visitNodeListWithSeparator(node.interfaces, ", ");
14641 return null; 14664 return null;
14642 } 14665 }
14643 14666
14644 @override 14667 @override
14645 Object visitImportDirective(ImportDirective node) { 14668 Object visitImportDirective(ImportDirective node) {
14669 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14646 _writer.print("import "); 14670 _writer.print("import ");
14647 _visitNode(node.uri); 14671 _visitNode(node.uri);
14648 _visitNodeWithPrefix(" as ", node.prefix); 14672 _visitNodeWithPrefix(" as ", node.prefix);
14649 _visitNodeListWithSeparatorAndPrefix(" ", node.combinators, " "); 14673 _visitNodeListWithSeparatorAndPrefix(" ", node.combinators, " ");
14650 _writer.print(';'); 14674 _writer.print(';');
14651 return null; 14675 return null;
14652 } 14676 }
14653 14677
14654 @override 14678 @override
14655 Object visitIndexExpression(IndexExpression node) { 14679 Object visitIndexExpression(IndexExpression node) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
14718 14742
14719 @override 14743 @override
14720 Object visitLabeledStatement(LabeledStatement node) { 14744 Object visitLabeledStatement(LabeledStatement node) {
14721 _visitNodeListWithSeparatorAndSuffix(node.labels, " ", " "); 14745 _visitNodeListWithSeparatorAndSuffix(node.labels, " ", " ");
14722 _visitNode(node.statement); 14746 _visitNode(node.statement);
14723 return null; 14747 return null;
14724 } 14748 }
14725 14749
14726 @override 14750 @override
14727 Object visitLibraryDirective(LibraryDirective node) { 14751 Object visitLibraryDirective(LibraryDirective node) {
14752 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14728 _writer.print("library "); 14753 _writer.print("library ");
14729 _visitNode(node.name); 14754 _visitNode(node.name);
14730 _writer.print(';'); 14755 _writer.print(';');
14731 return null; 14756 return null;
14732 } 14757 }
14733 14758
14734 @override 14759 @override
14735 Object visitLibraryIdentifier(LibraryIdentifier node) { 14760 Object visitLibraryIdentifier(LibraryIdentifier node) {
14736 _writer.print(node.name); 14761 _writer.print(node.name);
14737 return null; 14762 return null;
(...skipping 28 matching lines...) Expand all
14766 @override 14791 @override
14767 Object visitMapLiteralEntry(MapLiteralEntry node) { 14792 Object visitMapLiteralEntry(MapLiteralEntry node) {
14768 _visitNode(node.key); 14793 _visitNode(node.key);
14769 _writer.print(" : "); 14794 _writer.print(" : ");
14770 _visitNode(node.value); 14795 _visitNode(node.value);
14771 return null; 14796 return null;
14772 } 14797 }
14773 14798
14774 @override 14799 @override
14775 Object visitMethodDeclaration(MethodDeclaration node) { 14800 Object visitMethodDeclaration(MethodDeclaration node) {
14801 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14776 _visitTokenWithSuffix(node.externalKeyword, " "); 14802 _visitTokenWithSuffix(node.externalKeyword, " ");
14777 _visitTokenWithSuffix(node.modifierKeyword, " "); 14803 _visitTokenWithSuffix(node.modifierKeyword, " ");
14778 _visitNodeWithSuffix(node.returnType, " "); 14804 _visitNodeWithSuffix(node.returnType, " ");
14779 _visitTokenWithSuffix(node.propertyKeyword, " "); 14805 _visitTokenWithSuffix(node.propertyKeyword, " ");
14780 _visitTokenWithSuffix(node.operatorKeyword, " "); 14806 _visitTokenWithSuffix(node.operatorKeyword, " ");
14781 _visitNode(node.name); 14807 _visitNode(node.name);
14782 if (!node.isGetter) { 14808 if (!node.isGetter) {
14783 _visitNode(node.parameters); 14809 _visitNode(node.parameters);
14784 } 14810 }
14785 _visitFunctionWithPrefix(" ", node.body); 14811 _visitFunctionWithPrefix(" ", node.body);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
14829 @override 14855 @override
14830 Object visitParenthesizedExpression(ParenthesizedExpression node) { 14856 Object visitParenthesizedExpression(ParenthesizedExpression node) {
14831 _writer.print('('); 14857 _writer.print('(');
14832 _visitNode(node.expression); 14858 _visitNode(node.expression);
14833 _writer.print(')'); 14859 _writer.print(')');
14834 return null; 14860 return null;
14835 } 14861 }
14836 14862
14837 @override 14863 @override
14838 Object visitPartDirective(PartDirective node) { 14864 Object visitPartDirective(PartDirective node) {
14865 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14839 _writer.print("part "); 14866 _writer.print("part ");
14840 _visitNode(node.uri); 14867 _visitNode(node.uri);
14841 _writer.print(';'); 14868 _writer.print(';');
14842 return null; 14869 return null;
14843 } 14870 }
14844 14871
14845 @override 14872 @override
14846 Object visitPartOfDirective(PartOfDirective node) { 14873 Object visitPartOfDirective(PartOfDirective node) {
14874 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
14847 _writer.print("part of "); 14875 _writer.print("part of ");
14848 _visitNode(node.libraryName); 14876 _visitNode(node.libraryName);
14849 _writer.print(';'); 14877 _writer.print(';');
14850 return null; 14878 return null;
14851 } 14879 }
14852 14880
14853 @override 14881 @override
14854 Object visitPostfixExpression(PostfixExpression node) { 14882 Object visitPostfixExpression(PostfixExpression node) {
14855 _visitNode(node.operand); 14883 _visitNode(node.operand);
14856 _writer.print(node.operator.lexeme); 14884 _writer.print(node.operator.lexeme);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
15043 15071
15044 @override 15072 @override
15045 Object visitTypeName(TypeName node) { 15073 Object visitTypeName(TypeName node) {
15046 _visitNode(node.name); 15074 _visitNode(node.name);
15047 _visitNode(node.typeArguments); 15075 _visitNode(node.typeArguments);
15048 return null; 15076 return null;
15049 } 15077 }
15050 15078
15051 @override 15079 @override
15052 Object visitTypeParameter(TypeParameter node) { 15080 Object visitTypeParameter(TypeParameter node) {
15081 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
15053 _visitNode(node.name); 15082 _visitNode(node.name);
15054 _visitNodeWithPrefix(" extends ", node.bound); 15083 _visitNodeWithPrefix(" extends ", node.bound);
15055 return null; 15084 return null;
15056 } 15085 }
15057 15086
15058 @override 15087 @override
15059 Object visitTypeParameterList(TypeParameterList node) { 15088 Object visitTypeParameterList(TypeParameterList node) {
15060 _writer.print('<'); 15089 _writer.print('<');
15061 _visitNodeListWithSeparator(node.typeParameters, ", "); 15090 _visitNodeListWithSeparator(node.typeParameters, ", ");
15062 _writer.print('>'); 15091 _writer.print('>');
15063 return null; 15092 return null;
15064 } 15093 }
15065 15094
15066 @override 15095 @override
15067 Object visitVariableDeclaration(VariableDeclaration node) { 15096 Object visitVariableDeclaration(VariableDeclaration node) {
15097 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
15068 _visitNode(node.name); 15098 _visitNode(node.name);
15069 _visitNodeWithPrefix(" = ", node.initializer); 15099 _visitNodeWithPrefix(" = ", node.initializer);
15070 return null; 15100 return null;
15071 } 15101 }
15072 15102
15073 @override 15103 @override
15074 Object visitVariableDeclarationList(VariableDeclarationList node) { 15104 Object visitVariableDeclarationList(VariableDeclarationList node) {
15105 _visitNodeListWithSeparatorAndSuffix(node.metadata, " ", " ");
15075 _visitTokenWithSuffix(node.keyword, " "); 15106 _visitTokenWithSuffix(node.keyword, " ");
15076 _visitNodeWithSuffix(node.type, " "); 15107 _visitNodeWithSuffix(node.type, " ");
15077 _visitNodeListWithSeparator(node.variables, ", "); 15108 _visitNodeListWithSeparator(node.variables, ", ");
15078 return null; 15109 return null;
15079 } 15110 }
15080 15111
15081 @override 15112 @override
15082 Object visitVariableDeclarationStatement(VariableDeclarationStatement node) { 15113 Object visitVariableDeclarationStatement(VariableDeclarationStatement node) {
15083 _visitNode(node.variables); 15114 _visitNode(node.variables);
15084 _writer.print(";"); 15115 _writer.print(";");
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after
17575 _elements.removeAt(index); 17606 _elements.removeAt(index);
17576 return removedNode; 17607 return removedNode;
17577 } 17608 }
17578 void operator[]=(int index, E node) { 17609 void operator[]=(int index, E node) {
17579 if (index < 0 || index >= _elements.length) { 17610 if (index < 0 || index >= _elements.length) {
17580 throw new RangeError("Index: ${index}, Size: ${_elements.length}"); 17611 throw new RangeError("Index: ${index}, Size: ${_elements.length}");
17581 } 17612 }
17582 owner.becomeParentOf(node); 17613 owner.becomeParentOf(node);
17583 _elements[index] = node; 17614 _elements[index] = node;
17584 } 17615 }
17616 void clear() {
17617 _elements = <E> [];
17618 }
17585 int get length => _elements.length; 17619 int get length => _elements.length;
17586 void set length(int value) { 17620 void set length(int value) {
17587 throw new UnsupportedError("Cannot resize NodeList."); 17621 throw new UnsupportedError("Cannot resize NodeList.");
17588 } 17622 }
17589 } 17623 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698