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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 Iterable<SyntacticEntity> get childEntities => | 54 Iterable<SyntacticEntity> get childEntities => |
55 new ChildEntities()..addAll(_strings); | 55 new ChildEntities()..addAll(_strings); |
56 | 56 |
57 @override | 57 @override |
58 Token get endToken => _strings.endToken; | 58 Token get endToken => _strings.endToken; |
59 | 59 |
60 @override | 60 @override |
61 NodeList<StringLiteral> get strings => _strings; | 61 NodeList<StringLiteral> get strings => _strings; |
62 | 62 |
63 @override | 63 @override |
64 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 64 E accept<E>(AstVisitor<E> visitor) => visitor.visitAdjacentStrings(this); |
65 visitor.visitAdjacentStrings(this); | |
66 | 65 |
67 @override | 66 @override |
68 void visitChildren(AstVisitor visitor) { | 67 void visitChildren(AstVisitor visitor) { |
69 _strings.accept(visitor); | 68 _strings.accept(visitor); |
70 } | 69 } |
71 | 70 |
72 @override | 71 @override |
73 void _appendStringValue(StringBuffer buffer) { | 72 void _appendStringValue(StringBuffer buffer) { |
74 int length = strings.length; | 73 int length = strings.length; |
75 for (int i = 0; i < length; i++) { | 74 for (int i = 0; i < length; i++) { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 304 |
306 @override | 305 @override |
307 Identifier get name => _name; | 306 Identifier get name => _name; |
308 | 307 |
309 @override | 308 @override |
310 void set name(Identifier name) { | 309 void set name(Identifier name) { |
311 _name = _becomeParentOf(name as AstNodeImpl); | 310 _name = _becomeParentOf(name as AstNodeImpl); |
312 } | 311 } |
313 | 312 |
314 @override | 313 @override |
315 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 314 E accept<E>(AstVisitor<E> visitor) => visitor.visitAnnotation(this); |
316 visitor.visitAnnotation(this); | |
317 | 315 |
318 @override | 316 @override |
319 void visitChildren(AstVisitor visitor) { | 317 void visitChildren(AstVisitor visitor) { |
320 _name?.accept(visitor); | 318 _name?.accept(visitor); |
321 _constructorName?.accept(visitor); | 319 _constructorName?.accept(visitor); |
322 _arguments?.accept(visitor); | 320 _arguments?.accept(visitor); |
323 } | 321 } |
324 } | 322 } |
325 | 323 |
326 /** | 324 /** |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 throw new ArgumentError( | 414 throw new ArgumentError( |
417 "Expected ${_arguments.length} parameters, not ${parameters.length}"); | 415 "Expected ${_arguments.length} parameters, not ${parameters.length}"); |
418 } | 416 } |
419 _correspondingStaticParameters = parameters; | 417 _correspondingStaticParameters = parameters; |
420 } | 418 } |
421 | 419 |
422 @override | 420 @override |
423 Token get endToken => rightParenthesis; | 421 Token get endToken => rightParenthesis; |
424 | 422 |
425 @override | 423 @override |
426 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 424 E accept<E>(AstVisitor<E> visitor) => visitor.visitArgumentList(this); |
427 visitor.visitArgumentList(this); | |
428 | 425 |
429 @override | 426 @override |
430 void visitChildren(AstVisitor visitor) { | 427 void visitChildren(AstVisitor visitor) { |
431 _arguments.accept(visitor); | 428 _arguments.accept(visitor); |
432 } | 429 } |
433 | 430 |
434 /** | 431 /** |
435 * If | 432 * If |
436 * * the given [expression] is a child of this list, | 433 * * the given [expression] is a child of this list, |
437 * * the AST structure has been resolved, | 434 * * the AST structure has been resolved, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 537 |
541 @override | 538 @override |
542 TypeAnnotation get type => _type; | 539 TypeAnnotation get type => _type; |
543 | 540 |
544 @override | 541 @override |
545 void set type(TypeAnnotation type) { | 542 void set type(TypeAnnotation type) { |
546 _type = _becomeParentOf(type as AstNodeImpl); | 543 _type = _becomeParentOf(type as AstNodeImpl); |
547 } | 544 } |
548 | 545 |
549 @override | 546 @override |
550 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 547 E accept<E>(AstVisitor<E> visitor) => visitor.visitAsExpression(this); |
551 visitor.visitAsExpression(this); | |
552 | 548 |
553 @override | 549 @override |
554 void visitChildren(AstVisitor visitor) { | 550 void visitChildren(AstVisitor visitor) { |
555 _expression?.accept(visitor); | 551 _expression?.accept(visitor); |
556 _type?.accept(visitor); | 552 _type?.accept(visitor); |
557 } | 553 } |
558 } | 554 } |
559 | 555 |
560 /** | 556 /** |
561 * An assert in the initializer list of a constructor. | 557 * An assert in the initializer list of a constructor. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 623 |
628 @override | 624 @override |
629 Expression get message => _message; | 625 Expression get message => _message; |
630 | 626 |
631 @override | 627 @override |
632 void set message(Expression expression) { | 628 void set message(Expression expression) { |
633 _message = _becomeParentOf(expression as AstNodeImpl); | 629 _message = _becomeParentOf(expression as AstNodeImpl); |
634 } | 630 } |
635 | 631 |
636 @override | 632 @override |
637 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 633 E accept<E>(AstVisitor<E> visitor) => visitor.visitAssertInitializer(this); |
638 visitor.visitAssertInitializer(this); | |
639 | 634 |
640 @override | 635 @override |
641 void visitChildren(AstVisitor visitor) { | 636 void visitChildren(AstVisitor visitor) { |
642 _condition?.accept(visitor); | 637 _condition?.accept(visitor); |
643 message?.accept(visitor); | 638 message?.accept(visitor); |
644 } | 639 } |
645 } | 640 } |
646 | 641 |
647 /** | 642 /** |
648 * An assert statement. | 643 * An assert statement. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 713 |
719 @override | 714 @override |
720 Expression get message => _message; | 715 Expression get message => _message; |
721 | 716 |
722 @override | 717 @override |
723 void set message(Expression expression) { | 718 void set message(Expression expression) { |
724 _message = _becomeParentOf(expression as AstNodeImpl); | 719 _message = _becomeParentOf(expression as AstNodeImpl); |
725 } | 720 } |
726 | 721 |
727 @override | 722 @override |
728 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 723 E accept<E>(AstVisitor<E> visitor) => visitor.visitAssertStatement(this); |
729 visitor.visitAssertStatement(this); | |
730 | 724 |
731 @override | 725 @override |
732 void visitChildren(AstVisitor visitor) { | 726 void visitChildren(AstVisitor visitor) { |
733 _condition?.accept(visitor); | 727 _condition?.accept(visitor); |
734 message?.accept(visitor); | 728 message?.accept(visitor); |
735 } | 729 } |
736 } | 730 } |
737 | 731 |
738 /** | 732 /** |
739 * An assignment expression. | 733 * An assignment expression. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 return null; | 896 return null; |
903 } | 897 } |
904 List<ParameterElement> parameters = executableElement.parameters; | 898 List<ParameterElement> parameters = executableElement.parameters; |
905 if (parameters.length < 1) { | 899 if (parameters.length < 1) { |
906 return null; | 900 return null; |
907 } | 901 } |
908 return parameters[0]; | 902 return parameters[0]; |
909 } | 903 } |
910 | 904 |
911 @override | 905 @override |
912 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 906 E accept<E>(AstVisitor<E> visitor) => visitor.visitAssignmentExpression(this); |
913 visitor.visitAssignmentExpression(this); | |
914 | 907 |
915 @override | 908 @override |
916 void visitChildren(AstVisitor visitor) { | 909 void visitChildren(AstVisitor visitor) { |
917 _leftHandSide?.accept(visitor); | 910 _leftHandSide?.accept(visitor); |
918 _rightHandSide?.accept(visitor); | 911 _rightHandSide?.accept(visitor); |
919 } | 912 } |
920 } | 913 } |
921 | 914 |
922 /** | 915 /** |
923 * A node in the AST structure for a Dart program. | 916 * A node in the AST structure for a Dart program. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 AstNode root = this; | 961 AstNode root = this; |
969 AstNode parent = this.parent; | 962 AstNode parent = this.parent; |
970 while (parent != null) { | 963 while (parent != null) { |
971 root = parent; | 964 root = parent; |
972 parent = root.parent; | 965 parent = root.parent; |
973 } | 966 } |
974 return root; | 967 return root; |
975 } | 968 } |
976 | 969 |
977 @override | 970 @override |
978 AstNode/*=E*/ getAncestor/*<E extends AstNode>*/( | 971 E getAncestor<E extends AstNode>(Predicate<AstNode> predicate) { |
979 Predicate<AstNode> predicate) { | |
980 // TODO(brianwilkerson) It is a bug that this method can return `this`. | 972 // TODO(brianwilkerson) It is a bug that this method can return `this`. |
981 AstNode node = this; | 973 AstNode node = this; |
982 while (node != null && !predicate(node)) { | 974 while (node != null && !predicate(node)) { |
983 node = node.parent; | 975 node = node.parent; |
984 } | 976 } |
985 return node as AstNode/*=E*/; | 977 return node as E; |
986 } | 978 } |
987 | 979 |
988 @override | 980 @override |
989 Object/*=E*/ getProperty/*<E>*/(String name) { | 981 E getProperty<E>(String name) { |
990 if (_propertyMap == null) { | 982 if (_propertyMap == null) { |
991 return null; | 983 return null; |
992 } | 984 } |
993 return _propertyMap[name] as Object/*=E*/; | 985 return _propertyMap[name] as E; |
994 } | 986 } |
995 | 987 |
996 @override | 988 @override |
997 void setProperty(String name, Object value) { | 989 void setProperty(String name, Object value) { |
998 if (value == null) { | 990 if (value == null) { |
999 if (_propertyMap != null) { | 991 if (_propertyMap != null) { |
1000 _propertyMap.remove(name); | 992 _propertyMap.remove(name); |
1001 if (_propertyMap.isEmpty) { | 993 if (_propertyMap.isEmpty) { |
1002 _propertyMap = null; | 994 _propertyMap = null; |
1003 } | 995 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1068 |
1077 @override | 1069 @override |
1078 void set expression(Expression expression) { | 1070 void set expression(Expression expression) { |
1079 _expression = _becomeParentOf(expression as AstNodeImpl); | 1071 _expression = _becomeParentOf(expression as AstNodeImpl); |
1080 } | 1072 } |
1081 | 1073 |
1082 @override | 1074 @override |
1083 int get precedence => 0; | 1075 int get precedence => 0; |
1084 | 1076 |
1085 @override | 1077 @override |
1086 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1078 E accept<E>(AstVisitor<E> visitor) => visitor.visitAwaitExpression(this); |
1087 visitor.visitAwaitExpression(this); | |
1088 | 1079 |
1089 @override | 1080 @override |
1090 void visitChildren(AstVisitor visitor) { | 1081 void visitChildren(AstVisitor visitor) { |
1091 _expression?.accept(visitor); | 1082 _expression?.accept(visitor); |
1092 } | 1083 } |
1093 } | 1084 } |
1094 | 1085 |
1095 /** | 1086 /** |
1096 * A binary (infix) expression. | 1087 * A binary (infix) expression. |
1097 * | 1088 * |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 return null; | 1198 return null; |
1208 } | 1199 } |
1209 List<ParameterElement> parameters = staticElement.parameters; | 1200 List<ParameterElement> parameters = staticElement.parameters; |
1210 if (parameters.length < 1) { | 1201 if (parameters.length < 1) { |
1211 return null; | 1202 return null; |
1212 } | 1203 } |
1213 return parameters[0]; | 1204 return parameters[0]; |
1214 } | 1205 } |
1215 | 1206 |
1216 @override | 1207 @override |
1217 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1208 E accept<E>(AstVisitor<E> visitor) => visitor.visitBinaryExpression(this); |
1218 visitor.visitBinaryExpression(this); | |
1219 | 1209 |
1220 @override | 1210 @override |
1221 void visitChildren(AstVisitor visitor) { | 1211 void visitChildren(AstVisitor visitor) { |
1222 _leftOperand?.accept(visitor); | 1212 _leftOperand?.accept(visitor); |
1223 _rightOperand?.accept(visitor); | 1213 _rightOperand?.accept(visitor); |
1224 } | 1214 } |
1225 } | 1215 } |
1226 | 1216 |
1227 /** | 1217 /** |
1228 * A function body that consists of a block of statements. | 1218 * A function body that consists of a block of statements. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 @override | 1277 @override |
1288 bool get isAsynchronous => keyword != null && keyword.lexeme == Parser.ASYNC; | 1278 bool get isAsynchronous => keyword != null && keyword.lexeme == Parser.ASYNC; |
1289 | 1279 |
1290 @override | 1280 @override |
1291 bool get isGenerator => star != null; | 1281 bool get isGenerator => star != null; |
1292 | 1282 |
1293 @override | 1283 @override |
1294 bool get isSynchronous => keyword == null || keyword.lexeme != Parser.ASYNC; | 1284 bool get isSynchronous => keyword == null || keyword.lexeme != Parser.ASYNC; |
1295 | 1285 |
1296 @override | 1286 @override |
1297 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1287 E accept<E>(AstVisitor<E> visitor) => visitor.visitBlockFunctionBody(this); |
1298 visitor.visitBlockFunctionBody(this); | |
1299 | 1288 |
1300 @override | 1289 @override |
1301 void visitChildren(AstVisitor visitor) { | 1290 void visitChildren(AstVisitor visitor) { |
1302 _block?.accept(visitor); | 1291 _block?.accept(visitor); |
1303 } | 1292 } |
1304 } | 1293 } |
1305 | 1294 |
1306 /** | 1295 /** |
1307 * A sequence of statements. | 1296 * A sequence of statements. |
1308 * | 1297 * |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 ..addAll(_statements) | 1332 ..addAll(_statements) |
1344 ..add(rightBracket); | 1333 ..add(rightBracket); |
1345 | 1334 |
1346 @override | 1335 @override |
1347 Token get endToken => rightBracket; | 1336 Token get endToken => rightBracket; |
1348 | 1337 |
1349 @override | 1338 @override |
1350 NodeList<Statement> get statements => _statements; | 1339 NodeList<Statement> get statements => _statements; |
1351 | 1340 |
1352 @override | 1341 @override |
1353 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1342 E accept<E>(AstVisitor<E> visitor) => visitor.visitBlock(this); |
1354 visitor.visitBlock(this); | |
1355 | 1343 |
1356 @override | 1344 @override |
1357 void visitChildren(AstVisitor visitor) { | 1345 void visitChildren(AstVisitor visitor) { |
1358 _statements.accept(visitor); | 1346 _statements.accept(visitor); |
1359 } | 1347 } |
1360 } | 1348 } |
1361 | 1349 |
1362 /** | 1350 /** |
1363 * A boolean literal expression. | 1351 * A boolean literal expression. |
1364 * | 1352 * |
(...skipping 25 matching lines...) Expand all Loading... |
1390 Iterable<SyntacticEntity> get childEntities => | 1378 Iterable<SyntacticEntity> get childEntities => |
1391 new ChildEntities()..add(literal); | 1379 new ChildEntities()..add(literal); |
1392 | 1380 |
1393 @override | 1381 @override |
1394 Token get endToken => literal; | 1382 Token get endToken => literal; |
1395 | 1383 |
1396 @override | 1384 @override |
1397 bool get isSynthetic => literal.isSynthetic; | 1385 bool get isSynthetic => literal.isSynthetic; |
1398 | 1386 |
1399 @override | 1387 @override |
1400 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1388 E accept<E>(AstVisitor<E> visitor) => visitor.visitBooleanLiteral(this); |
1401 visitor.visitBooleanLiteral(this); | |
1402 | 1389 |
1403 @override | 1390 @override |
1404 void visitChildren(AstVisitor visitor) { | 1391 void visitChildren(AstVisitor visitor) { |
1405 // There are no children to visit. | 1392 // There are no children to visit. |
1406 } | 1393 } |
1407 } | 1394 } |
1408 | 1395 |
1409 /** | 1396 /** |
1410 * A break statement. | 1397 * A break statement. |
1411 * | 1398 * |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 | 1450 |
1464 @override | 1451 @override |
1465 SimpleIdentifier get label => _label; | 1452 SimpleIdentifier get label => _label; |
1466 | 1453 |
1467 @override | 1454 @override |
1468 void set label(SimpleIdentifier identifier) { | 1455 void set label(SimpleIdentifier identifier) { |
1469 _label = _becomeParentOf(identifier as AstNodeImpl); | 1456 _label = _becomeParentOf(identifier as AstNodeImpl); |
1470 } | 1457 } |
1471 | 1458 |
1472 @override | 1459 @override |
1473 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1460 E accept<E>(AstVisitor<E> visitor) => visitor.visitBreakStatement(this); |
1474 visitor.visitBreakStatement(this); | |
1475 | 1461 |
1476 @override | 1462 @override |
1477 void visitChildren(AstVisitor visitor) { | 1463 void visitChildren(AstVisitor visitor) { |
1478 _label?.accept(visitor); | 1464 _label?.accept(visitor); |
1479 } | 1465 } |
1480 } | 1466 } |
1481 | 1467 |
1482 /** | 1468 /** |
1483 * A sequence of cascaded expressions: expressions that share a common target. | 1469 * A sequence of cascaded expressions: expressions that share a common target. |
1484 * There are three kinds of expressions that can be used in a cascade | 1470 * There are three kinds of expressions that can be used in a cascade |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 | 1522 |
1537 @override | 1523 @override |
1538 Expression get target => _target; | 1524 Expression get target => _target; |
1539 | 1525 |
1540 @override | 1526 @override |
1541 void set target(Expression target) { | 1527 void set target(Expression target) { |
1542 _target = _becomeParentOf(target as AstNodeImpl); | 1528 _target = _becomeParentOf(target as AstNodeImpl); |
1543 } | 1529 } |
1544 | 1530 |
1545 @override | 1531 @override |
1546 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1532 E accept<E>(AstVisitor<E> visitor) => visitor.visitCascadeExpression(this); |
1547 visitor.visitCascadeExpression(this); | |
1548 | 1533 |
1549 @override | 1534 @override |
1550 void visitChildren(AstVisitor visitor) { | 1535 void visitChildren(AstVisitor visitor) { |
1551 _target?.accept(visitor); | 1536 _target?.accept(visitor); |
1552 _cascadeSections.accept(visitor); | 1537 _cascadeSections.accept(visitor); |
1553 } | 1538 } |
1554 } | 1539 } |
1555 | 1540 |
1556 /** | 1541 /** |
1557 * A catch clause within a try statement. | 1542 * A catch clause within a try statement. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 | 1676 |
1692 @override | 1677 @override |
1693 SimpleIdentifier get stackTraceParameter => _stackTraceParameter; | 1678 SimpleIdentifier get stackTraceParameter => _stackTraceParameter; |
1694 | 1679 |
1695 @override | 1680 @override |
1696 void set stackTraceParameter(SimpleIdentifier parameter) { | 1681 void set stackTraceParameter(SimpleIdentifier parameter) { |
1697 _stackTraceParameter = _becomeParentOf(parameter as AstNodeImpl); | 1682 _stackTraceParameter = _becomeParentOf(parameter as AstNodeImpl); |
1698 } | 1683 } |
1699 | 1684 |
1700 @override | 1685 @override |
1701 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1686 E accept<E>(AstVisitor<E> visitor) => visitor.visitCatchClause(this); |
1702 visitor.visitCatchClause(this); | |
1703 | 1687 |
1704 @override | 1688 @override |
1705 void visitChildren(AstVisitor visitor) { | 1689 void visitChildren(AstVisitor visitor) { |
1706 _exceptionType?.accept(visitor); | 1690 _exceptionType?.accept(visitor); |
1707 _exceptionParameter?.accept(visitor); | 1691 _exceptionParameter?.accept(visitor); |
1708 _stackTraceParameter?.accept(visitor); | 1692 _stackTraceParameter?.accept(visitor); |
1709 _body?.accept(visitor); | 1693 _body?.accept(visitor); |
1710 } | 1694 } |
1711 } | 1695 } |
1712 | 1696 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 | 1896 |
1913 @override | 1897 @override |
1914 WithClause get withClause => _withClause; | 1898 WithClause get withClause => _withClause; |
1915 | 1899 |
1916 @override | 1900 @override |
1917 void set withClause(WithClause withClause) { | 1901 void set withClause(WithClause withClause) { |
1918 _withClause = _becomeParentOf(withClause as AstNodeImpl); | 1902 _withClause = _becomeParentOf(withClause as AstNodeImpl); |
1919 } | 1903 } |
1920 | 1904 |
1921 @override | 1905 @override |
1922 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 1906 E accept<E>(AstVisitor<E> visitor) => visitor.visitClassDeclaration(this); |
1923 visitor.visitClassDeclaration(this); | |
1924 | 1907 |
1925 @override | 1908 @override |
1926 ConstructorDeclaration getConstructor(String name) { | 1909 ConstructorDeclaration getConstructor(String name) { |
1927 int length = _members.length; | 1910 int length = _members.length; |
1928 for (int i = 0; i < length; i++) { | 1911 for (int i = 0; i < length; i++) { |
1929 ClassMember classMember = _members[i]; | 1912 ClassMember classMember = _members[i]; |
1930 if (classMember is ConstructorDeclaration) { | 1913 if (classMember is ConstructorDeclaration) { |
1931 ConstructorDeclaration constructor = classMember; | 1914 ConstructorDeclaration constructor = classMember; |
1932 SimpleIdentifier constructorName = constructor.name; | 1915 SimpleIdentifier constructorName = constructor.name; |
1933 if (name == null && constructorName == null) { | 1916 if (name == null && constructorName == null) { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 | 2112 |
2130 @override | 2113 @override |
2131 WithClause get withClause => _withClause; | 2114 WithClause get withClause => _withClause; |
2132 | 2115 |
2133 @override | 2116 @override |
2134 void set withClause(WithClause withClause) { | 2117 void set withClause(WithClause withClause) { |
2135 _withClause = _becomeParentOf(withClause as AstNodeImpl); | 2118 _withClause = _becomeParentOf(withClause as AstNodeImpl); |
2136 } | 2119 } |
2137 | 2120 |
2138 @override | 2121 @override |
2139 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2122 E accept<E>(AstVisitor<E> visitor) => visitor.visitClassTypeAlias(this); |
2140 visitor.visitClassTypeAlias(this); | |
2141 | 2123 |
2142 @override | 2124 @override |
2143 void visitChildren(AstVisitor visitor) { | 2125 void visitChildren(AstVisitor visitor) { |
2144 super.visitChildren(visitor); | 2126 super.visitChildren(visitor); |
2145 _name?.accept(visitor); | 2127 _name?.accept(visitor); |
2146 _typeParameters?.accept(visitor); | 2128 _typeParameters?.accept(visitor); |
2147 _superclass?.accept(visitor); | 2129 _superclass?.accept(visitor); |
2148 _withClause?.accept(visitor); | 2130 _withClause?.accept(visitor); |
2149 _implementsClause?.accept(visitor); | 2131 _implementsClause?.accept(visitor); |
2150 } | 2132 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 @override | 2219 @override |
2238 bool get isDocumentation => _type == CommentType.DOCUMENTATION; | 2220 bool get isDocumentation => _type == CommentType.DOCUMENTATION; |
2239 | 2221 |
2240 @override | 2222 @override |
2241 bool get isEndOfLine => _type == CommentType.END_OF_LINE; | 2223 bool get isEndOfLine => _type == CommentType.END_OF_LINE; |
2242 | 2224 |
2243 @override | 2225 @override |
2244 NodeList<CommentReference> get references => _references; | 2226 NodeList<CommentReference> get references => _references; |
2245 | 2227 |
2246 @override | 2228 @override |
2247 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2229 E accept<E>(AstVisitor<E> visitor) => visitor.visitComment(this); |
2248 visitor.visitComment(this); | |
2249 | 2230 |
2250 @override | 2231 @override |
2251 void visitChildren(AstVisitor visitor) { | 2232 void visitChildren(AstVisitor visitor) { |
2252 _references.accept(visitor); | 2233 _references.accept(visitor); |
2253 } | 2234 } |
2254 | 2235 |
2255 /** | 2236 /** |
2256 * Create a block comment consisting of the given [tokens]. | 2237 * Create a block comment consisting of the given [tokens]. |
2257 */ | 2238 */ |
2258 static Comment createBlockComment(List<Token> tokens) => | 2239 static Comment createBlockComment(List<Token> tokens) => |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2319 | 2300 |
2320 @override | 2301 @override |
2321 Identifier get identifier => _identifier; | 2302 Identifier get identifier => _identifier; |
2322 | 2303 |
2323 @override | 2304 @override |
2324 void set identifier(Identifier identifier) { | 2305 void set identifier(Identifier identifier) { |
2325 _identifier = _becomeParentOf(identifier as AstNodeImpl); | 2306 _identifier = _becomeParentOf(identifier as AstNodeImpl); |
2326 } | 2307 } |
2327 | 2308 |
2328 @override | 2309 @override |
2329 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2310 E accept<E>(AstVisitor<E> visitor) => visitor.visitCommentReference(this); |
2330 visitor.visitCommentReference(this); | |
2331 | 2311 |
2332 @override | 2312 @override |
2333 void visitChildren(AstVisitor visitor) { | 2313 void visitChildren(AstVisitor visitor) { |
2334 _identifier?.accept(visitor); | 2314 _identifier?.accept(visitor); |
2335 } | 2315 } |
2336 } | 2316 } |
2337 | 2317 |
2338 /** | 2318 /** |
2339 * The possible types of comments that are recognized by the parser. | 2319 * The possible types of comments that are recognized by the parser. |
2340 */ | 2320 */ |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 bool get _directivesAreBeforeDeclarations { | 2485 bool get _directivesAreBeforeDeclarations { |
2506 if (_directives.isEmpty || _declarations.isEmpty) { | 2486 if (_directives.isEmpty || _declarations.isEmpty) { |
2507 return true; | 2487 return true; |
2508 } | 2488 } |
2509 Directive lastDirective = _directives[_directives.length - 1]; | 2489 Directive lastDirective = _directives[_directives.length - 1]; |
2510 CompilationUnitMember firstDeclaration = _declarations[0]; | 2490 CompilationUnitMember firstDeclaration = _declarations[0]; |
2511 return lastDirective.offset < firstDeclaration.offset; | 2491 return lastDirective.offset < firstDeclaration.offset; |
2512 } | 2492 } |
2513 | 2493 |
2514 @override | 2494 @override |
2515 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2495 E accept<E>(AstVisitor<E> visitor) => visitor.visitCompilationUnit(this); |
2516 visitor.visitCompilationUnit(this); | |
2517 | 2496 |
2518 @override | 2497 @override |
2519 void visitChildren(AstVisitor visitor) { | 2498 void visitChildren(AstVisitor visitor) { |
2520 _scriptTag?.accept(visitor); | 2499 _scriptTag?.accept(visitor); |
2521 if (_directivesAreBeforeDeclarations) { | 2500 if (_directivesAreBeforeDeclarations) { |
2522 _directives.accept(visitor); | 2501 _directives.accept(visitor); |
2523 _declarations.accept(visitor); | 2502 _declarations.accept(visitor); |
2524 } else { | 2503 } else { |
2525 List<AstNode> sortedMembers = sortedDirectivesAndDeclarations; | 2504 List<AstNode> sortedMembers = sortedDirectivesAndDeclarations; |
2526 int length = sortedMembers.length; | 2505 int length = sortedMembers.length; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2639 | 2618 |
2640 @override | 2619 @override |
2641 Expression get thenExpression => _thenExpression; | 2620 Expression get thenExpression => _thenExpression; |
2642 | 2621 |
2643 @override | 2622 @override |
2644 void set thenExpression(Expression expression) { | 2623 void set thenExpression(Expression expression) { |
2645 _thenExpression = _becomeParentOf(expression as AstNodeImpl); | 2624 _thenExpression = _becomeParentOf(expression as AstNodeImpl); |
2646 } | 2625 } |
2647 | 2626 |
2648 @override | 2627 @override |
2649 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2628 E accept<E>(AstVisitor<E> visitor) => |
2650 visitor.visitConditionalExpression(this); | 2629 visitor.visitConditionalExpression(this); |
2651 | 2630 |
2652 @override | 2631 @override |
2653 void visitChildren(AstVisitor visitor) { | 2632 void visitChildren(AstVisitor visitor) { |
2654 _condition?.accept(visitor); | 2633 _condition?.accept(visitor); |
2655 _thenExpression?.accept(visitor); | 2634 _thenExpression?.accept(visitor); |
2656 _elseExpression?.accept(visitor); | 2635 _elseExpression?.accept(visitor); |
2657 } | 2636 } |
2658 } | 2637 } |
2659 | 2638 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 | 2727 |
2749 @override | 2728 @override |
2750 StringLiteral get value => _value; | 2729 StringLiteral get value => _value; |
2751 | 2730 |
2752 @override | 2731 @override |
2753 void set value(StringLiteral value) { | 2732 void set value(StringLiteral value) { |
2754 _value = _becomeParentOf(value as AstNodeImpl); | 2733 _value = _becomeParentOf(value as AstNodeImpl); |
2755 } | 2734 } |
2756 | 2735 |
2757 @override | 2736 @override |
2758 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2737 E accept<E>(AstVisitor<E> visitor) => visitor.visitConfiguration(this); |
2759 visitor.visitConfiguration(this); | |
2760 | 2738 |
2761 @override | 2739 @override |
2762 void visitChildren(AstVisitor visitor) { | 2740 void visitChildren(AstVisitor visitor) { |
2763 _name?.accept(visitor); | 2741 _name?.accept(visitor); |
2764 _value?.accept(visitor); | 2742 _value?.accept(visitor); |
2765 _uri?.accept(visitor); | 2743 _uri?.accept(visitor); |
2766 } | 2744 } |
2767 } | 2745 } |
2768 | 2746 |
2769 /** | 2747 /** |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2978 | 2956 |
2979 @override | 2957 @override |
2980 Identifier get returnType => _returnType; | 2958 Identifier get returnType => _returnType; |
2981 | 2959 |
2982 @override | 2960 @override |
2983 void set returnType(Identifier typeName) { | 2961 void set returnType(Identifier typeName) { |
2984 _returnType = _becomeParentOf(typeName as AstNodeImpl); | 2962 _returnType = _becomeParentOf(typeName as AstNodeImpl); |
2985 } | 2963 } |
2986 | 2964 |
2987 @override | 2965 @override |
2988 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 2966 E accept<E>(AstVisitor<E> visitor) => |
2989 visitor.visitConstructorDeclaration(this); | 2967 visitor.visitConstructorDeclaration(this); |
2990 | 2968 |
2991 @override | 2969 @override |
2992 void visitChildren(AstVisitor visitor) { | 2970 void visitChildren(AstVisitor visitor) { |
2993 super.visitChildren(visitor); | 2971 super.visitChildren(visitor); |
2994 _returnType?.accept(visitor); | 2972 _returnType?.accept(visitor); |
2995 _name?.accept(visitor); | 2973 _name?.accept(visitor); |
2996 _parameters?.accept(visitor); | 2974 _parameters?.accept(visitor); |
2997 _initializers.accept(visitor); | 2975 _initializers.accept(visitor); |
2998 _redirectedConstructor?.accept(visitor); | 2976 _redirectedConstructor?.accept(visitor); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3077 | 3055 |
3078 @override | 3056 @override |
3079 SimpleIdentifier get fieldName => _fieldName; | 3057 SimpleIdentifier get fieldName => _fieldName; |
3080 | 3058 |
3081 @override | 3059 @override |
3082 void set fieldName(SimpleIdentifier identifier) { | 3060 void set fieldName(SimpleIdentifier identifier) { |
3083 _fieldName = _becomeParentOf(identifier as AstNodeImpl); | 3061 _fieldName = _becomeParentOf(identifier as AstNodeImpl); |
3084 } | 3062 } |
3085 | 3063 |
3086 @override | 3064 @override |
3087 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3065 E accept<E>(AstVisitor<E> visitor) => |
3088 visitor.visitConstructorFieldInitializer(this); | 3066 visitor.visitConstructorFieldInitializer(this); |
3089 | 3067 |
3090 @override | 3068 @override |
3091 void visitChildren(AstVisitor visitor) { | 3069 void visitChildren(AstVisitor visitor) { |
3092 _fieldName?.accept(visitor); | 3070 _fieldName?.accept(visitor); |
3093 _expression?.accept(visitor); | 3071 _expression?.accept(visitor); |
3094 } | 3072 } |
3095 } | 3073 } |
3096 | 3074 |
3097 /** | 3075 /** |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3173 | 3151 |
3174 @override | 3152 @override |
3175 TypeName get type => _type; | 3153 TypeName get type => _type; |
3176 | 3154 |
3177 @override | 3155 @override |
3178 void set type(TypeName type) { | 3156 void set type(TypeName type) { |
3179 _type = _becomeParentOf(type as AstNodeImpl); | 3157 _type = _becomeParentOf(type as AstNodeImpl); |
3180 } | 3158 } |
3181 | 3159 |
3182 @override | 3160 @override |
3183 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3161 E accept<E>(AstVisitor<E> visitor) => visitor.visitConstructorName(this); |
3184 visitor.visitConstructorName(this); | |
3185 | 3162 |
3186 @override | 3163 @override |
3187 void visitChildren(AstVisitor visitor) { | 3164 void visitChildren(AstVisitor visitor) { |
3188 _type?.accept(visitor); | 3165 _type?.accept(visitor); |
3189 _name?.accept(visitor); | 3166 _name?.accept(visitor); |
3190 } | 3167 } |
3191 } | 3168 } |
3192 | 3169 |
3193 /** | 3170 /** |
3194 * A continue statement. | 3171 * A continue statement. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3245 | 3222 |
3246 @override | 3223 @override |
3247 SimpleIdentifier get label => _label; | 3224 SimpleIdentifier get label => _label; |
3248 | 3225 |
3249 @override | 3226 @override |
3250 void set label(SimpleIdentifier identifier) { | 3227 void set label(SimpleIdentifier identifier) { |
3251 _label = _becomeParentOf(identifier as AstNodeImpl); | 3228 _label = _becomeParentOf(identifier as AstNodeImpl); |
3252 } | 3229 } |
3253 | 3230 |
3254 @override | 3231 @override |
3255 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3232 E accept<E>(AstVisitor<E> visitor) => visitor.visitContinueStatement(this); |
3256 visitor.visitContinueStatement(this); | |
3257 | 3233 |
3258 @override | 3234 @override |
3259 void visitChildren(AstVisitor visitor) { | 3235 void visitChildren(AstVisitor visitor) { |
3260 _label?.accept(visitor); | 3236 _label?.accept(visitor); |
3261 } | 3237 } |
3262 } | 3238 } |
3263 | 3239 |
3264 /** | 3240 /** |
3265 * A node that represents the declaration of one or more names. Each declared | 3241 * A node that represents the declaration of one or more names. Each declared |
3266 * name is visible within a name scope. | 3242 * name is visible within a name scope. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 | 3332 |
3357 @override | 3333 @override |
3358 TypeAnnotation get type => _type; | 3334 TypeAnnotation get type => _type; |
3359 | 3335 |
3360 @override | 3336 @override |
3361 void set type(TypeAnnotation type) { | 3337 void set type(TypeAnnotation type) { |
3362 _type = _becomeParentOf(type as AstNodeImpl); | 3338 _type = _becomeParentOf(type as AstNodeImpl); |
3363 } | 3339 } |
3364 | 3340 |
3365 @override | 3341 @override |
3366 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3342 E accept<E>(AstVisitor<E> visitor) => visitor.visitDeclaredIdentifier(this); |
3367 visitor.visitDeclaredIdentifier(this); | |
3368 | 3343 |
3369 @override | 3344 @override |
3370 void visitChildren(AstVisitor visitor) { | 3345 void visitChildren(AstVisitor visitor) { |
3371 super.visitChildren(visitor); | 3346 super.visitChildren(visitor); |
3372 _type?.accept(visitor); | 3347 _type?.accept(visitor); |
3373 _identifier?.accept(visitor); | 3348 _identifier?.accept(visitor); |
3374 } | 3349 } |
3375 } | 3350 } |
3376 | 3351 |
3377 /** | 3352 /** |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3479 | 3454 |
3480 @override | 3455 @override |
3481 NormalFormalParameter get parameter => _parameter; | 3456 NormalFormalParameter get parameter => _parameter; |
3482 | 3457 |
3483 @override | 3458 @override |
3484 void set parameter(NormalFormalParameter formalParameter) { | 3459 void set parameter(NormalFormalParameter formalParameter) { |
3485 _parameter = _becomeParentOf(formalParameter as AstNodeImpl); | 3460 _parameter = _becomeParentOf(formalParameter as AstNodeImpl); |
3486 } | 3461 } |
3487 | 3462 |
3488 @override | 3463 @override |
3489 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3464 E accept<E>(AstVisitor<E> visitor) => |
3490 visitor.visitDefaultFormalParameter(this); | 3465 visitor.visitDefaultFormalParameter(this); |
3491 | 3466 |
3492 @override | 3467 @override |
3493 void visitChildren(AstVisitor visitor) { | 3468 void visitChildren(AstVisitor visitor) { |
3494 _parameter?.accept(visitor); | 3469 _parameter?.accept(visitor); |
3495 _defaultValue?.accept(visitor); | 3470 _defaultValue?.accept(visitor); |
3496 } | 3471 } |
3497 } | 3472 } |
3498 | 3473 |
3499 /** | 3474 /** |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3619 | 3594 |
3620 @override | 3595 @override |
3621 void set condition(Expression expression) { | 3596 void set condition(Expression expression) { |
3622 _condition = _becomeParentOf(expression as AstNodeImpl); | 3597 _condition = _becomeParentOf(expression as AstNodeImpl); |
3623 } | 3598 } |
3624 | 3599 |
3625 @override | 3600 @override |
3626 Token get endToken => semicolon; | 3601 Token get endToken => semicolon; |
3627 | 3602 |
3628 @override | 3603 @override |
3629 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3604 E accept<E>(AstVisitor<E> visitor) => visitor.visitDoStatement(this); |
3630 visitor.visitDoStatement(this); | |
3631 | 3605 |
3632 @override | 3606 @override |
3633 void visitChildren(AstVisitor visitor) { | 3607 void visitChildren(AstVisitor visitor) { |
3634 _body?.accept(visitor); | 3608 _body?.accept(visitor); |
3635 _condition?.accept(visitor); | 3609 _condition?.accept(visitor); |
3636 } | 3610 } |
3637 } | 3611 } |
3638 | 3612 |
3639 /** | 3613 /** |
3640 * A dotted name, used in a configuration within an import or export directive. | 3614 * A dotted name, used in a configuration within an import or export directive. |
(...skipping 22 matching lines...) Expand all Loading... |
3663 Iterable<SyntacticEntity> get childEntities => | 3637 Iterable<SyntacticEntity> get childEntities => |
3664 new ChildEntities()..addAll(_components); | 3638 new ChildEntities()..addAll(_components); |
3665 | 3639 |
3666 @override | 3640 @override |
3667 NodeList<SimpleIdentifier> get components => _components; | 3641 NodeList<SimpleIdentifier> get components => _components; |
3668 | 3642 |
3669 @override | 3643 @override |
3670 Token get endToken => _components.endToken; | 3644 Token get endToken => _components.endToken; |
3671 | 3645 |
3672 @override | 3646 @override |
3673 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3647 E accept<E>(AstVisitor<E> visitor) => visitor.visitDottedName(this); |
3674 visitor.visitDottedName(this); | |
3675 | 3648 |
3676 @override | 3649 @override |
3677 void visitChildren(AstVisitor visitor) { | 3650 void visitChildren(AstVisitor visitor) { |
3678 _components.accept(visitor); | 3651 _components.accept(visitor); |
3679 } | 3652 } |
3680 } | 3653 } |
3681 | 3654 |
3682 /** | 3655 /** |
3683 * A floating point literal expression. | 3656 * A floating point literal expression. |
3684 * | 3657 * |
(...skipping 26 matching lines...) Expand all Loading... |
3711 Token get beginToken => literal; | 3684 Token get beginToken => literal; |
3712 | 3685 |
3713 @override | 3686 @override |
3714 Iterable<SyntacticEntity> get childEntities => | 3687 Iterable<SyntacticEntity> get childEntities => |
3715 new ChildEntities()..add(literal); | 3688 new ChildEntities()..add(literal); |
3716 | 3689 |
3717 @override | 3690 @override |
3718 Token get endToken => literal; | 3691 Token get endToken => literal; |
3719 | 3692 |
3720 @override | 3693 @override |
3721 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3694 E accept<E>(AstVisitor<E> visitor) => visitor.visitDoubleLiteral(this); |
3722 visitor.visitDoubleLiteral(this); | |
3723 | 3695 |
3724 @override | 3696 @override |
3725 void visitChildren(AstVisitor visitor) { | 3697 void visitChildren(AstVisitor visitor) { |
3726 // There are no children to visit. | 3698 // There are no children to visit. |
3727 } | 3699 } |
3728 } | 3700 } |
3729 | 3701 |
3730 /** | 3702 /** |
3731 * An empty function body, which can only appear in constructors or abstract | 3703 * An empty function body, which can only appear in constructors or abstract |
3732 * methods. | 3704 * methods. |
(...skipping 19 matching lines...) Expand all Loading... |
3752 Token get beginToken => semicolon; | 3724 Token get beginToken => semicolon; |
3753 | 3725 |
3754 @override | 3726 @override |
3755 Iterable<SyntacticEntity> get childEntities => | 3727 Iterable<SyntacticEntity> get childEntities => |
3756 new ChildEntities()..add(semicolon); | 3728 new ChildEntities()..add(semicolon); |
3757 | 3729 |
3758 @override | 3730 @override |
3759 Token get endToken => semicolon; | 3731 Token get endToken => semicolon; |
3760 | 3732 |
3761 @override | 3733 @override |
3762 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3734 E accept<E>(AstVisitor<E> visitor) => visitor.visitEmptyFunctionBody(this); |
3763 visitor.visitEmptyFunctionBody(this); | |
3764 | 3735 |
3765 @override | 3736 @override |
3766 void visitChildren(AstVisitor visitor) { | 3737 void visitChildren(AstVisitor visitor) { |
3767 // Empty function bodies have no children. | 3738 // Empty function bodies have no children. |
3768 } | 3739 } |
3769 } | 3740 } |
3770 | 3741 |
3771 /** | 3742 /** |
3772 * An empty statement. | 3743 * An empty statement. |
3773 * | 3744 * |
(...skipping 15 matching lines...) Expand all Loading... |
3789 Token get beginToken => semicolon; | 3760 Token get beginToken => semicolon; |
3790 | 3761 |
3791 @override | 3762 @override |
3792 Iterable<SyntacticEntity> get childEntities => | 3763 Iterable<SyntacticEntity> get childEntities => |
3793 new ChildEntities()..add(semicolon); | 3764 new ChildEntities()..add(semicolon); |
3794 | 3765 |
3795 @override | 3766 @override |
3796 Token get endToken => semicolon; | 3767 Token get endToken => semicolon; |
3797 | 3768 |
3798 @override | 3769 @override |
3799 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3770 E accept<E>(AstVisitor<E> visitor) => visitor.visitEmptyStatement(this); |
3800 visitor.visitEmptyStatement(this); | |
3801 | 3771 |
3802 @override | 3772 @override |
3803 void visitChildren(AstVisitor visitor) { | 3773 void visitChildren(AstVisitor visitor) { |
3804 // There are no children to visit. | 3774 // There are no children to visit. |
3805 } | 3775 } |
3806 } | 3776 } |
3807 | 3777 |
3808 /** | 3778 /** |
3809 * The declaration of an enum constant. | 3779 * The declaration of an enum constant. |
3810 */ | 3780 */ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3842 | 3812 |
3843 @override | 3813 @override |
3844 SimpleIdentifier get name => _name; | 3814 SimpleIdentifier get name => _name; |
3845 | 3815 |
3846 @override | 3816 @override |
3847 void set name(SimpleIdentifier name) { | 3817 void set name(SimpleIdentifier name) { |
3848 _name = _becomeParentOf(name as AstNodeImpl); | 3818 _name = _becomeParentOf(name as AstNodeImpl); |
3849 } | 3819 } |
3850 | 3820 |
3851 @override | 3821 @override |
3852 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3822 E accept<E>(AstVisitor<E> visitor) => |
3853 visitor.visitEnumConstantDeclaration(this); | 3823 visitor.visitEnumConstantDeclaration(this); |
3854 | 3824 |
3855 @override | 3825 @override |
3856 void visitChildren(AstVisitor visitor) { | 3826 void visitChildren(AstVisitor visitor) { |
3857 super.visitChildren(visitor); | 3827 super.visitChildren(visitor); |
3858 _name?.accept(visitor); | 3828 _name?.accept(visitor); |
3859 } | 3829 } |
3860 } | 3830 } |
3861 | 3831 |
3862 /** | 3832 /** |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3923 @override | 3893 @override |
3924 ClassElement get element => _name?.staticElement as ClassElement; | 3894 ClassElement get element => _name?.staticElement as ClassElement; |
3925 | 3895 |
3926 @override | 3896 @override |
3927 Token get endToken => rightBracket; | 3897 Token get endToken => rightBracket; |
3928 | 3898 |
3929 @override | 3899 @override |
3930 Token get firstTokenAfterCommentAndMetadata => enumKeyword; | 3900 Token get firstTokenAfterCommentAndMetadata => enumKeyword; |
3931 | 3901 |
3932 @override | 3902 @override |
3933 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3903 E accept<E>(AstVisitor<E> visitor) => visitor.visitEnumDeclaration(this); |
3934 visitor.visitEnumDeclaration(this); | |
3935 | 3904 |
3936 @override | 3905 @override |
3937 void visitChildren(AstVisitor visitor) { | 3906 void visitChildren(AstVisitor visitor) { |
3938 super.visitChildren(visitor); | 3907 super.visitChildren(visitor); |
3939 _name?.accept(visitor); | 3908 _name?.accept(visitor); |
3940 _constants.accept(visitor); | 3909 _constants.accept(visitor); |
3941 } | 3910 } |
3942 } | 3911 } |
3943 | 3912 |
3944 /** | 3913 /** |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3988 | 3957 |
3989 @override | 3958 @override |
3990 LibraryElement get uriElement { | 3959 LibraryElement get uriElement { |
3991 if (element != null) { | 3960 if (element != null) { |
3992 return element.exportedLibrary; | 3961 return element.exportedLibrary; |
3993 } | 3962 } |
3994 return null; | 3963 return null; |
3995 } | 3964 } |
3996 | 3965 |
3997 @override | 3966 @override |
3998 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 3967 E accept<E>(AstVisitor<E> visitor) => visitor.visitExportDirective(this); |
3999 visitor.visitExportDirective(this); | |
4000 | 3968 |
4001 @override | 3969 @override |
4002 void visitChildren(AstVisitor visitor) { | 3970 void visitChildren(AstVisitor visitor) { |
4003 super.visitChildren(visitor); | 3971 super.visitChildren(visitor); |
4004 combinators.accept(visitor); | 3972 combinators.accept(visitor); |
4005 } | 3973 } |
4006 } | 3974 } |
4007 | 3975 |
4008 /** | 3976 /** |
4009 * A function body consisting of a single expression. | 3977 * A function body consisting of a single expression. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4079 _expression = _becomeParentOf(expression as AstNodeImpl); | 4047 _expression = _becomeParentOf(expression as AstNodeImpl); |
4080 } | 4048 } |
4081 | 4049 |
4082 @override | 4050 @override |
4083 bool get isAsynchronous => keyword != null; | 4051 bool get isAsynchronous => keyword != null; |
4084 | 4052 |
4085 @override | 4053 @override |
4086 bool get isSynchronous => keyword == null; | 4054 bool get isSynchronous => keyword == null; |
4087 | 4055 |
4088 @override | 4056 @override |
4089 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4057 E accept<E>(AstVisitor<E> visitor) => |
4090 visitor.visitExpressionFunctionBody(this); | 4058 visitor.visitExpressionFunctionBody(this); |
4091 | 4059 |
4092 @override | 4060 @override |
4093 void visitChildren(AstVisitor visitor) { | 4061 void visitChildren(AstVisitor visitor) { |
4094 _expression?.accept(visitor); | 4062 _expression?.accept(visitor); |
4095 } | 4063 } |
4096 } | 4064 } |
4097 | 4065 |
4098 /** | 4066 /** |
4099 * A node that represents an expression. | 4067 * A node that represents an expression. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4246 | 4214 |
4247 @override | 4215 @override |
4248 void set expression(Expression expression) { | 4216 void set expression(Expression expression) { |
4249 _expression = _becomeParentOf(expression as AstNodeImpl); | 4217 _expression = _becomeParentOf(expression as AstNodeImpl); |
4250 } | 4218 } |
4251 | 4219 |
4252 @override | 4220 @override |
4253 bool get isSynthetic => _expression.isSynthetic && semicolon.isSynthetic; | 4221 bool get isSynthetic => _expression.isSynthetic && semicolon.isSynthetic; |
4254 | 4222 |
4255 @override | 4223 @override |
4256 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4224 E accept<E>(AstVisitor<E> visitor) => visitor.visitExpressionStatement(this); |
4257 visitor.visitExpressionStatement(this); | |
4258 | 4225 |
4259 @override | 4226 @override |
4260 void visitChildren(AstVisitor visitor) { | 4227 void visitChildren(AstVisitor visitor) { |
4261 _expression?.accept(visitor); | 4228 _expression?.accept(visitor); |
4262 } | 4229 } |
4263 } | 4230 } |
4264 | 4231 |
4265 /** | 4232 /** |
4266 * The "extends" clause in a class declaration. | 4233 * The "extends" clause in a class declaration. |
4267 * | 4234 * |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4299 | 4266 |
4300 @override | 4267 @override |
4301 TypeName get superclass => _superclass; | 4268 TypeName get superclass => _superclass; |
4302 | 4269 |
4303 @override | 4270 @override |
4304 void set superclass(TypeName name) { | 4271 void set superclass(TypeName name) { |
4305 _superclass = _becomeParentOf(name as AstNodeImpl); | 4272 _superclass = _becomeParentOf(name as AstNodeImpl); |
4306 } | 4273 } |
4307 | 4274 |
4308 @override | 4275 @override |
4309 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4276 E accept<E>(AstVisitor<E> visitor) => visitor.visitExtendsClause(this); |
4310 visitor.visitExtendsClause(this); | |
4311 | 4277 |
4312 @override | 4278 @override |
4313 void visitChildren(AstVisitor visitor) { | 4279 void visitChildren(AstVisitor visitor) { |
4314 _superclass?.accept(visitor); | 4280 _superclass?.accept(visitor); |
4315 } | 4281 } |
4316 } | 4282 } |
4317 | 4283 |
4318 /** | 4284 /** |
4319 * The declaration of one or more fields of the same type. | 4285 * The declaration of one or more fields of the same type. |
4320 * | 4286 * |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4388 } else if (staticKeyword != null) { | 4354 } else if (staticKeyword != null) { |
4389 return staticKeyword; | 4355 return staticKeyword; |
4390 } | 4356 } |
4391 return _fieldList.beginToken; | 4357 return _fieldList.beginToken; |
4392 } | 4358 } |
4393 | 4359 |
4394 @override | 4360 @override |
4395 bool get isStatic => staticKeyword != null; | 4361 bool get isStatic => staticKeyword != null; |
4396 | 4362 |
4397 @override | 4363 @override |
4398 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4364 E accept<E>(AstVisitor<E> visitor) => visitor.visitFieldDeclaration(this); |
4399 visitor.visitFieldDeclaration(this); | |
4400 | 4365 |
4401 @override | 4366 @override |
4402 void visitChildren(AstVisitor visitor) { | 4367 void visitChildren(AstVisitor visitor) { |
4403 super.visitChildren(visitor); | 4368 super.visitChildren(visitor); |
4404 _fieldList?.accept(visitor); | 4369 _fieldList?.accept(visitor); |
4405 } | 4370 } |
4406 } | 4371 } |
4407 | 4372 |
4408 /** | 4373 /** |
4409 * A field formal parameter. | 4374 * A field formal parameter. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4533 | 4498 |
4534 @override | 4499 @override |
4535 TypeParameterList get typeParameters => _typeParameters; | 4500 TypeParameterList get typeParameters => _typeParameters; |
4536 | 4501 |
4537 @override | 4502 @override |
4538 void set typeParameters(TypeParameterList typeParameters) { | 4503 void set typeParameters(TypeParameterList typeParameters) { |
4539 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 4504 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
4540 } | 4505 } |
4541 | 4506 |
4542 @override | 4507 @override |
4543 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4508 E accept<E>(AstVisitor<E> visitor) => visitor.visitFieldFormalParameter(this); |
4544 visitor.visitFieldFormalParameter(this); | |
4545 | 4509 |
4546 @override | 4510 @override |
4547 void visitChildren(AstVisitor visitor) { | 4511 void visitChildren(AstVisitor visitor) { |
4548 super.visitChildren(visitor); | 4512 super.visitChildren(visitor); |
4549 _type?.accept(visitor); | 4513 _type?.accept(visitor); |
4550 identifier?.accept(visitor); | 4514 identifier?.accept(visitor); |
4551 _typeParameters?.accept(visitor); | 4515 _typeParameters?.accept(visitor); |
4552 _parameters?.accept(visitor); | 4516 _parameters?.accept(visitor); |
4553 } | 4517 } |
4554 } | 4518 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4695 | 4659 |
4696 @override | 4660 @override |
4697 DeclaredIdentifier get loopVariable => _loopVariable; | 4661 DeclaredIdentifier get loopVariable => _loopVariable; |
4698 | 4662 |
4699 @override | 4663 @override |
4700 void set loopVariable(DeclaredIdentifier variable) { | 4664 void set loopVariable(DeclaredIdentifier variable) { |
4701 _loopVariable = _becomeParentOf(variable as AstNodeImpl); | 4665 _loopVariable = _becomeParentOf(variable as AstNodeImpl); |
4702 } | 4666 } |
4703 | 4667 |
4704 @override | 4668 @override |
4705 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4669 E accept<E>(AstVisitor<E> visitor) => visitor.visitForEachStatement(this); |
4706 visitor.visitForEachStatement(this); | |
4707 | 4670 |
4708 @override | 4671 @override |
4709 void visitChildren(AstVisitor visitor) { | 4672 void visitChildren(AstVisitor visitor) { |
4710 _loopVariable?.accept(visitor); | 4673 _loopVariable?.accept(visitor); |
4711 _identifier?.accept(visitor); | 4674 _identifier?.accept(visitor); |
4712 _iterable?.accept(visitor); | 4675 _iterable?.accept(visitor); |
4713 _body?.accept(visitor); | 4676 _body?.accept(visitor); |
4714 } | 4677 } |
4715 } | 4678 } |
4716 | 4679 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4838 for (int i = 0; i < count; i++) { | 4801 for (int i = 0; i < count; i++) { |
4839 types[i] = _parameters[i].element; | 4802 types[i] = _parameters[i].element; |
4840 } | 4803 } |
4841 return types; | 4804 return types; |
4842 } | 4805 } |
4843 | 4806 |
4844 @override | 4807 @override |
4845 NodeList<FormalParameter> get parameters => _parameters; | 4808 NodeList<FormalParameter> get parameters => _parameters; |
4846 | 4809 |
4847 @override | 4810 @override |
4848 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4811 E accept<E>(AstVisitor<E> visitor) => visitor.visitFormalParameterList(this); |
4849 visitor.visitFormalParameterList(this); | |
4850 | 4812 |
4851 @override | 4813 @override |
4852 void visitChildren(AstVisitor visitor) { | 4814 void visitChildren(AstVisitor visitor) { |
4853 _parameters.accept(visitor); | 4815 _parameters.accept(visitor); |
4854 } | 4816 } |
4855 } | 4817 } |
4856 | 4818 |
4857 /** | 4819 /** |
4858 * A for statement. | 4820 * A for statement. |
4859 * | 4821 * |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5000 | 4962 |
5001 @override | 4963 @override |
5002 VariableDeclarationList get variables => _variableList; | 4964 VariableDeclarationList get variables => _variableList; |
5003 | 4965 |
5004 @override | 4966 @override |
5005 void set variables(VariableDeclarationList variableList) { | 4967 void set variables(VariableDeclarationList variableList) { |
5006 _variableList = _becomeParentOf(variableList as AstNodeImpl); | 4968 _variableList = _becomeParentOf(variableList as AstNodeImpl); |
5007 } | 4969 } |
5008 | 4970 |
5009 @override | 4971 @override |
5010 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 4972 E accept<E>(AstVisitor<E> visitor) => visitor.visitForStatement(this); |
5011 visitor.visitForStatement(this); | |
5012 | 4973 |
5013 @override | 4974 @override |
5014 void visitChildren(AstVisitor visitor) { | 4975 void visitChildren(AstVisitor visitor) { |
5015 _variableList?.accept(visitor); | 4976 _variableList?.accept(visitor); |
5016 _initialization?.accept(visitor); | 4977 _initialization?.accept(visitor); |
5017 _condition?.accept(visitor); | 4978 _condition?.accept(visitor); |
5018 _updaters.accept(visitor); | 4979 _updaters.accept(visitor); |
5019 _body?.accept(visitor); | 4980 _body?.accept(visitor); |
5020 } | 4981 } |
5021 } | 4982 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5186 | 5147 |
5187 @override | 5148 @override |
5188 TypeAnnotation get returnType => _returnType; | 5149 TypeAnnotation get returnType => _returnType; |
5189 | 5150 |
5190 @override | 5151 @override |
5191 void set returnType(TypeAnnotation type) { | 5152 void set returnType(TypeAnnotation type) { |
5192 _returnType = _becomeParentOf(type as AstNodeImpl); | 5153 _returnType = _becomeParentOf(type as AstNodeImpl); |
5193 } | 5154 } |
5194 | 5155 |
5195 @override | 5156 @override |
5196 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5157 E accept<E>(AstVisitor<E> visitor) => visitor.visitFunctionDeclaration(this); |
5197 visitor.visitFunctionDeclaration(this); | |
5198 | 5158 |
5199 @override | 5159 @override |
5200 void visitChildren(AstVisitor visitor) { | 5160 void visitChildren(AstVisitor visitor) { |
5201 super.visitChildren(visitor); | 5161 super.visitChildren(visitor); |
5202 _returnType?.accept(visitor); | 5162 _returnType?.accept(visitor); |
5203 _name?.accept(visitor); | 5163 _name?.accept(visitor); |
5204 _functionExpression?.accept(visitor); | 5164 _functionExpression?.accept(visitor); |
5205 } | 5165 } |
5206 } | 5166 } |
5207 | 5167 |
(...skipping 27 matching lines...) Expand all Loading... |
5235 | 5195 |
5236 @override | 5196 @override |
5237 FunctionDeclaration get functionDeclaration => _functionDeclaration; | 5197 FunctionDeclaration get functionDeclaration => _functionDeclaration; |
5238 | 5198 |
5239 @override | 5199 @override |
5240 void set functionDeclaration(FunctionDeclaration functionDeclaration) { | 5200 void set functionDeclaration(FunctionDeclaration functionDeclaration) { |
5241 _functionDeclaration = _becomeParentOf(functionDeclaration as AstNodeImpl); | 5201 _functionDeclaration = _becomeParentOf(functionDeclaration as AstNodeImpl); |
5242 } | 5202 } |
5243 | 5203 |
5244 @override | 5204 @override |
5245 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5205 E accept<E>(AstVisitor<E> visitor) => |
5246 visitor.visitFunctionDeclarationStatement(this); | 5206 visitor.visitFunctionDeclarationStatement(this); |
5247 | 5207 |
5248 @override | 5208 @override |
5249 void visitChildren(AstVisitor visitor) { | 5209 void visitChildren(AstVisitor visitor) { |
5250 _functionDeclaration?.accept(visitor); | 5210 _functionDeclaration?.accept(visitor); |
5251 } | 5211 } |
5252 } | 5212 } |
5253 | 5213 |
5254 /** | 5214 /** |
5255 * A function expression. | 5215 * A function expression. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5343 | 5303 |
5344 @override | 5304 @override |
5345 TypeParameterList get typeParameters => _typeParameters; | 5305 TypeParameterList get typeParameters => _typeParameters; |
5346 | 5306 |
5347 @override | 5307 @override |
5348 void set typeParameters(TypeParameterList typeParameters) { | 5308 void set typeParameters(TypeParameterList typeParameters) { |
5349 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 5309 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
5350 } | 5310 } |
5351 | 5311 |
5352 @override | 5312 @override |
5353 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5313 E accept<E>(AstVisitor<E> visitor) => visitor.visitFunctionExpression(this); |
5354 visitor.visitFunctionExpression(this); | |
5355 | 5314 |
5356 @override | 5315 @override |
5357 void visitChildren(AstVisitor visitor) { | 5316 void visitChildren(AstVisitor visitor) { |
5358 _typeParameters?.accept(visitor); | 5317 _typeParameters?.accept(visitor); |
5359 _parameters?.accept(visitor); | 5318 _parameters?.accept(visitor); |
5360 _body?.accept(visitor); | 5319 _body?.accept(visitor); |
5361 } | 5320 } |
5362 } | 5321 } |
5363 | 5322 |
5364 /** | 5323 /** |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5426 | 5385 |
5427 @override | 5386 @override |
5428 void set function(Expression expression) { | 5387 void set function(Expression expression) { |
5429 _function = _becomeParentOf(expression as AstNodeImpl); | 5388 _function = _becomeParentOf(expression as AstNodeImpl); |
5430 } | 5389 } |
5431 | 5390 |
5432 @override | 5391 @override |
5433 int get precedence => 15; | 5392 int get precedence => 15; |
5434 | 5393 |
5435 @override | 5394 @override |
5436 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5395 E accept<E>(AstVisitor<E> visitor) => |
5437 visitor.visitFunctionExpressionInvocation(this); | 5396 visitor.visitFunctionExpressionInvocation(this); |
5438 | 5397 |
5439 @override | 5398 @override |
5440 void visitChildren(AstVisitor visitor) { | 5399 void visitChildren(AstVisitor visitor) { |
5441 _function?.accept(visitor); | 5400 _function?.accept(visitor); |
5442 _typeArguments?.accept(visitor); | 5401 _typeArguments?.accept(visitor); |
5443 _argumentList?.accept(visitor); | 5402 _argumentList?.accept(visitor); |
5444 } | 5403 } |
5445 } | 5404 } |
5446 | 5405 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5524 | 5483 |
5525 @override | 5484 @override |
5526 TypeParameterList get typeParameters => _typeParameters; | 5485 TypeParameterList get typeParameters => _typeParameters; |
5527 | 5486 |
5528 @override | 5487 @override |
5529 void set typeParameters(TypeParameterList typeParameters) { | 5488 void set typeParameters(TypeParameterList typeParameters) { |
5530 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 5489 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
5531 } | 5490 } |
5532 | 5491 |
5533 @override | 5492 @override |
5534 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5493 E accept<E>(AstVisitor<E> visitor) => visitor.visitFunctionTypeAlias(this); |
5535 visitor.visitFunctionTypeAlias(this); | |
5536 | 5494 |
5537 @override | 5495 @override |
5538 void visitChildren(AstVisitor visitor) { | 5496 void visitChildren(AstVisitor visitor) { |
5539 super.visitChildren(visitor); | 5497 super.visitChildren(visitor); |
5540 _returnType?.accept(visitor); | 5498 _returnType?.accept(visitor); |
5541 _name?.accept(visitor); | 5499 _name?.accept(visitor); |
5542 _typeParameters?.accept(visitor); | 5500 _typeParameters?.accept(visitor); |
5543 _parameters?.accept(visitor); | 5501 _parameters?.accept(visitor); |
5544 } | 5502 } |
5545 } | 5503 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5637 | 5595 |
5638 @override | 5596 @override |
5639 TypeParameterList get typeParameters => _typeParameters; | 5597 TypeParameterList get typeParameters => _typeParameters; |
5640 | 5598 |
5641 @override | 5599 @override |
5642 void set typeParameters(TypeParameterList typeParameters) { | 5600 void set typeParameters(TypeParameterList typeParameters) { |
5643 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 5601 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
5644 } | 5602 } |
5645 | 5603 |
5646 @override | 5604 @override |
5647 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5605 E accept<E>(AstVisitor<E> visitor) => |
5648 visitor.visitFunctionTypedFormalParameter(this); | 5606 visitor.visitFunctionTypedFormalParameter(this); |
5649 | 5607 |
5650 @override | 5608 @override |
5651 void visitChildren(AstVisitor visitor) { | 5609 void visitChildren(AstVisitor visitor) { |
5652 super.visitChildren(visitor); | 5610 super.visitChildren(visitor); |
5653 _returnType?.accept(visitor); | 5611 _returnType?.accept(visitor); |
5654 identifier?.accept(visitor); | 5612 identifier?.accept(visitor); |
5655 _typeParameters?.accept(visitor); | 5613 _typeParameters?.accept(visitor); |
5656 _parameters?.accept(visitor); | 5614 _parameters?.accept(visitor); |
5657 } | 5615 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5763 /** | 5721 /** |
5764 * Set the type parameters for the function type to the given list of | 5722 * Set the type parameters for the function type to the given list of |
5765 * [typeParameters]. | 5723 * [typeParameters]. |
5766 */ | 5724 */ |
5767 void set typeParameters(TypeParameterList typeParameters) { | 5725 void set typeParameters(TypeParameterList typeParameters) { |
5768 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 5726 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
5769 } | 5727 } |
5770 | 5728 |
5771 // TODO: implement type | 5729 // TODO: implement type |
5772 @override | 5730 @override |
5773 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) { | 5731 E accept<E>(AstVisitor<E> visitor) { |
5774 return visitor.visitGenericFunctionType(this); | 5732 return visitor.visitGenericFunctionType(this); |
5775 } | 5733 } |
5776 | 5734 |
5777 @override | 5735 @override |
5778 void visitChildren(AstVisitor visitor) { | 5736 void visitChildren(AstVisitor visitor) { |
5779 _returnType?.accept(visitor); | 5737 _returnType?.accept(visitor); |
5780 _typeParameters?.accept(visitor); | 5738 _typeParameters?.accept(visitor); |
5781 _parameters?.accept(visitor); | 5739 _parameters?.accept(visitor); |
5782 } | 5740 } |
5783 } | 5741 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5845 | 5803 |
5846 @override | 5804 @override |
5847 TypeParameterList get typeParameters => _typeParameters; | 5805 TypeParameterList get typeParameters => _typeParameters; |
5848 | 5806 |
5849 @override | 5807 @override |
5850 void set typeParameters(TypeParameterList typeParameters) { | 5808 void set typeParameters(TypeParameterList typeParameters) { |
5851 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 5809 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
5852 } | 5810 } |
5853 | 5811 |
5854 @override | 5812 @override |
5855 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) { | 5813 E accept<E>(AstVisitor<E> visitor) { |
5856 return visitor.visitGenericTypeAlias(this); | 5814 return visitor.visitGenericTypeAlias(this); |
5857 } | 5815 } |
5858 | 5816 |
5859 @override | 5817 @override |
5860 void visitChildren(AstVisitor visitor) { | 5818 void visitChildren(AstVisitor visitor) { |
5861 super.visitChildren(visitor); | 5819 super.visitChildren(visitor); |
5862 name?.accept(visitor); | 5820 name?.accept(visitor); |
5863 _typeParameters?.accept(visitor); | 5821 _typeParameters?.accept(visitor); |
5864 _functionType?.accept(visitor); | 5822 _functionType?.accept(visitor); |
5865 } | 5823 } |
(...skipping 25 matching lines...) Expand all Loading... |
5891 ..add(keyword) | 5849 ..add(keyword) |
5892 ..addAll(_hiddenNames); | 5850 ..addAll(_hiddenNames); |
5893 | 5851 |
5894 @override | 5852 @override |
5895 Token get endToken => _hiddenNames.endToken; | 5853 Token get endToken => _hiddenNames.endToken; |
5896 | 5854 |
5897 @override | 5855 @override |
5898 NodeList<SimpleIdentifier> get hiddenNames => _hiddenNames; | 5856 NodeList<SimpleIdentifier> get hiddenNames => _hiddenNames; |
5899 | 5857 |
5900 @override | 5858 @override |
5901 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5859 E accept<E>(AstVisitor<E> visitor) => visitor.visitHideCombinator(this); |
5902 visitor.visitHideCombinator(this); | |
5903 | 5860 |
5904 @override | 5861 @override |
5905 void visitChildren(AstVisitor visitor) { | 5862 void visitChildren(AstVisitor visitor) { |
5906 _hiddenNames.accept(visitor); | 5863 _hiddenNames.accept(visitor); |
5907 } | 5864 } |
5908 } | 5865 } |
5909 | 5866 |
5910 /** | 5867 /** |
5911 * A node that represents an identifier. | 5868 * A node that represents an identifier. |
5912 * | 5869 * |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6032 | 5989 |
6033 @override | 5990 @override |
6034 Statement get thenStatement => _thenStatement; | 5991 Statement get thenStatement => _thenStatement; |
6035 | 5992 |
6036 @override | 5993 @override |
6037 void set thenStatement(Statement statement) { | 5994 void set thenStatement(Statement statement) { |
6038 _thenStatement = _becomeParentOf(statement as AstNodeImpl); | 5995 _thenStatement = _becomeParentOf(statement as AstNodeImpl); |
6039 } | 5996 } |
6040 | 5997 |
6041 @override | 5998 @override |
6042 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 5999 E accept<E>(AstVisitor<E> visitor) => visitor.visitIfStatement(this); |
6043 visitor.visitIfStatement(this); | |
6044 | 6000 |
6045 @override | 6001 @override |
6046 void visitChildren(AstVisitor visitor) { | 6002 void visitChildren(AstVisitor visitor) { |
6047 _condition?.accept(visitor); | 6003 _condition?.accept(visitor); |
6048 _thenStatement?.accept(visitor); | 6004 _thenStatement?.accept(visitor); |
6049 _elseStatement?.accept(visitor); | 6005 _elseStatement?.accept(visitor); |
6050 } | 6006 } |
6051 } | 6007 } |
6052 | 6008 |
6053 /** | 6009 /** |
(...skipping 30 matching lines...) Expand all Loading... |
6084 ..add(implementsKeyword) | 6040 ..add(implementsKeyword) |
6085 ..addAll(interfaces); | 6041 ..addAll(interfaces); |
6086 | 6042 |
6087 @override | 6043 @override |
6088 Token get endToken => _interfaces.endToken; | 6044 Token get endToken => _interfaces.endToken; |
6089 | 6045 |
6090 @override | 6046 @override |
6091 NodeList<TypeName> get interfaces => _interfaces; | 6047 NodeList<TypeName> get interfaces => _interfaces; |
6092 | 6048 |
6093 @override | 6049 @override |
6094 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6050 E accept<E>(AstVisitor<E> visitor) => visitor.visitImplementsClause(this); |
6095 visitor.visitImplementsClause(this); | |
6096 | 6051 |
6097 @override | 6052 @override |
6098 void visitChildren(AstVisitor visitor) { | 6053 void visitChildren(AstVisitor visitor) { |
6099 _interfaces.accept(visitor); | 6054 _interfaces.accept(visitor); |
6100 } | 6055 } |
6101 } | 6056 } |
6102 | 6057 |
6103 /** | 6058 /** |
6104 * An import directive. | 6059 * An import directive. |
6105 * | 6060 * |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6175 @override | 6130 @override |
6176 LibraryElement get uriElement { | 6131 LibraryElement get uriElement { |
6177 ImportElement element = this.element; | 6132 ImportElement element = this.element; |
6178 if (element == null) { | 6133 if (element == null) { |
6179 return null; | 6134 return null; |
6180 } | 6135 } |
6181 return element.importedLibrary; | 6136 return element.importedLibrary; |
6182 } | 6137 } |
6183 | 6138 |
6184 @override | 6139 @override |
6185 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6140 E accept<E>(AstVisitor<E> visitor) => visitor.visitImportDirective(this); |
6186 visitor.visitImportDirective(this); | |
6187 | 6141 |
6188 @override | 6142 @override |
6189 void visitChildren(AstVisitor visitor) { | 6143 void visitChildren(AstVisitor visitor) { |
6190 super.visitChildren(visitor); | 6144 super.visitChildren(visitor); |
6191 _prefix?.accept(visitor); | 6145 _prefix?.accept(visitor); |
6192 combinators.accept(visitor); | 6146 combinators.accept(visitor); |
6193 } | 6147 } |
6194 } | 6148 } |
6195 | 6149 |
6196 /** | 6150 /** |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6368 return null; | 6322 return null; |
6369 } | 6323 } |
6370 List<ParameterElement> parameters = staticElement.parameters; | 6324 List<ParameterElement> parameters = staticElement.parameters; |
6371 if (parameters.length < 1) { | 6325 if (parameters.length < 1) { |
6372 return null; | 6326 return null; |
6373 } | 6327 } |
6374 return parameters[0]; | 6328 return parameters[0]; |
6375 } | 6329 } |
6376 | 6330 |
6377 @override | 6331 @override |
6378 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6332 E accept<E>(AstVisitor<E> visitor) => visitor.visitIndexExpression(this); |
6379 visitor.visitIndexExpression(this); | |
6380 | 6333 |
6381 @override | 6334 @override |
6382 bool inGetterContext() { | 6335 bool inGetterContext() { |
6383 // TODO(brianwilkerson) Convert this to a getter. | 6336 // TODO(brianwilkerson) Convert this to a getter. |
6384 AstNode parent = this.parent; | 6337 AstNode parent = this.parent; |
6385 if (parent is AssignmentExpression) { | 6338 if (parent is AssignmentExpression) { |
6386 AssignmentExpression assignment = parent; | 6339 AssignmentExpression assignment = parent; |
6387 if (identical(assignment.leftHandSide, this) && | 6340 if (identical(assignment.leftHandSide, this) && |
6388 assignment.operator.type == TokenType.EQ) { | 6341 assignment.operator.type == TokenType.EQ) { |
6389 return false; | 6342 return false; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6483 @override | 6436 @override |
6484 Token get endToken => _argumentList.endToken; | 6437 Token get endToken => _argumentList.endToken; |
6485 | 6438 |
6486 @override | 6439 @override |
6487 bool get isConst => keyword?.keyword == Keyword.CONST; | 6440 bool get isConst => keyword?.keyword == Keyword.CONST; |
6488 | 6441 |
6489 @override | 6442 @override |
6490 int get precedence => 16; | 6443 int get precedence => 16; |
6491 | 6444 |
6492 @override | 6445 @override |
6493 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6446 E accept<E>(AstVisitor<E> visitor) => |
6494 visitor.visitInstanceCreationExpression(this); | 6447 visitor.visitInstanceCreationExpression(this); |
6495 | 6448 |
6496 @override | 6449 @override |
6497 void visitChildren(AstVisitor visitor) { | 6450 void visitChildren(AstVisitor visitor) { |
6498 _constructorName?.accept(visitor); | 6451 _constructorName?.accept(visitor); |
6499 _argumentList?.accept(visitor); | 6452 _argumentList?.accept(visitor); |
6500 } | 6453 } |
6501 } | 6454 } |
6502 | 6455 |
6503 /** | 6456 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6536 Token get beginToken => literal; | 6489 Token get beginToken => literal; |
6537 | 6490 |
6538 @override | 6491 @override |
6539 Iterable<SyntacticEntity> get childEntities => | 6492 Iterable<SyntacticEntity> get childEntities => |
6540 new ChildEntities()..add(literal); | 6493 new ChildEntities()..add(literal); |
6541 | 6494 |
6542 @override | 6495 @override |
6543 Token get endToken => literal; | 6496 Token get endToken => literal; |
6544 | 6497 |
6545 @override | 6498 @override |
6546 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6499 E accept<E>(AstVisitor<E> visitor) => visitor.visitIntegerLiteral(this); |
6547 visitor.visitIntegerLiteral(this); | |
6548 | 6500 |
6549 @override | 6501 @override |
6550 void visitChildren(AstVisitor visitor) { | 6502 void visitChildren(AstVisitor visitor) { |
6551 // There are no children to visit. | 6503 // There are no children to visit. |
6552 } | 6504 } |
6553 } | 6505 } |
6554 | 6506 |
6555 /** | 6507 /** |
6556 * A node within a [StringInterpolation]. | 6508 * A node within a [StringInterpolation]. |
6557 * | 6509 * |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6618 | 6570 |
6619 @override | 6571 @override |
6620 Expression get expression => _expression; | 6572 Expression get expression => _expression; |
6621 | 6573 |
6622 @override | 6574 @override |
6623 void set expression(Expression expression) { | 6575 void set expression(Expression expression) { |
6624 _expression = _becomeParentOf(expression as AstNodeImpl); | 6576 _expression = _becomeParentOf(expression as AstNodeImpl); |
6625 } | 6577 } |
6626 | 6578 |
6627 @override | 6579 @override |
6628 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6580 E accept<E>(AstVisitor<E> visitor) => |
6629 visitor.visitInterpolationExpression(this); | 6581 visitor.visitInterpolationExpression(this); |
6630 | 6582 |
6631 @override | 6583 @override |
6632 void visitChildren(AstVisitor visitor) { | 6584 void visitChildren(AstVisitor visitor) { |
6633 _expression?.accept(visitor); | 6585 _expression?.accept(visitor); |
6634 } | 6586 } |
6635 } | 6587 } |
6636 | 6588 |
6637 /** | 6589 /** |
6638 * A non-empty substring of an interpolated string. | 6590 * A non-empty substring of an interpolated string. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6677 int get contentsOffset { | 6629 int get contentsOffset { |
6678 int offset = contents.offset; | 6630 int offset = contents.offset; |
6679 String lexeme = contents.lexeme; | 6631 String lexeme = contents.lexeme; |
6680 return offset + new StringLexemeHelper(lexeme, true, true).start; | 6632 return offset + new StringLexemeHelper(lexeme, true, true).start; |
6681 } | 6633 } |
6682 | 6634 |
6683 @override | 6635 @override |
6684 Token get endToken => contents; | 6636 Token get endToken => contents; |
6685 | 6637 |
6686 @override | 6638 @override |
6687 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6639 E accept<E>(AstVisitor<E> visitor) => visitor.visitInterpolationString(this); |
6688 visitor.visitInterpolationString(this); | |
6689 | 6640 |
6690 @override | 6641 @override |
6691 void visitChildren(AstVisitor visitor) {} | 6642 void visitChildren(AstVisitor visitor) {} |
6692 } | 6643 } |
6693 | 6644 |
6694 /** | 6645 /** |
6695 * Common base class for [FunctionExpressionInvocationImpl] and | 6646 * Common base class for [FunctionExpressionInvocationImpl] and |
6696 * [MethodInvocationImpl]. | 6647 * [MethodInvocationImpl]. |
6697 */ | 6648 */ |
6698 abstract class InvocationExpressionImpl extends ExpressionImpl | 6649 abstract class InvocationExpressionImpl extends ExpressionImpl |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6803 | 6754 |
6804 @override | 6755 @override |
6805 TypeAnnotation get type => _type; | 6756 TypeAnnotation get type => _type; |
6806 | 6757 |
6807 @override | 6758 @override |
6808 void set type(TypeAnnotation type) { | 6759 void set type(TypeAnnotation type) { |
6809 _type = _becomeParentOf(type as AstNodeImpl); | 6760 _type = _becomeParentOf(type as AstNodeImpl); |
6810 } | 6761 } |
6811 | 6762 |
6812 @override | 6763 @override |
6813 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6764 E accept<E>(AstVisitor<E> visitor) => visitor.visitIsExpression(this); |
6814 visitor.visitIsExpression(this); | |
6815 | 6765 |
6816 @override | 6766 @override |
6817 void visitChildren(AstVisitor visitor) { | 6767 void visitChildren(AstVisitor visitor) { |
6818 _expression?.accept(visitor); | 6768 _expression?.accept(visitor); |
6819 _type?.accept(visitor); | 6769 _type?.accept(visitor); |
6820 } | 6770 } |
6821 } | 6771 } |
6822 | 6772 |
6823 /** | 6773 /** |
6824 * A statement that has a label associated with them. | 6774 * A statement that has a label associated with them. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6869 | 6819 |
6870 @override | 6820 @override |
6871 void set statement(Statement statement) { | 6821 void set statement(Statement statement) { |
6872 _statement = _becomeParentOf(statement as AstNodeImpl); | 6822 _statement = _becomeParentOf(statement as AstNodeImpl); |
6873 } | 6823 } |
6874 | 6824 |
6875 @override | 6825 @override |
6876 Statement get unlabeled => _statement.unlabeled; | 6826 Statement get unlabeled => _statement.unlabeled; |
6877 | 6827 |
6878 @override | 6828 @override |
6879 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6829 E accept<E>(AstVisitor<E> visitor) => visitor.visitLabeledStatement(this); |
6880 visitor.visitLabeledStatement(this); | |
6881 | 6830 |
6882 @override | 6831 @override |
6883 void visitChildren(AstVisitor visitor) { | 6832 void visitChildren(AstVisitor visitor) { |
6884 _labels.accept(visitor); | 6833 _labels.accept(visitor); |
6885 _statement?.accept(visitor); | 6834 _statement?.accept(visitor); |
6886 } | 6835 } |
6887 } | 6836 } |
6888 | 6837 |
6889 /** | 6838 /** |
6890 * A label on either a [LabeledStatement] or a [NamedExpression]. | 6839 * A label on either a [LabeledStatement] or a [NamedExpression]. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6923 | 6872 |
6924 @override | 6873 @override |
6925 SimpleIdentifier get label => _label; | 6874 SimpleIdentifier get label => _label; |
6926 | 6875 |
6927 @override | 6876 @override |
6928 void set label(SimpleIdentifier label) { | 6877 void set label(SimpleIdentifier label) { |
6929 _label = _becomeParentOf(label as AstNodeImpl); | 6878 _label = _becomeParentOf(label as AstNodeImpl); |
6930 } | 6879 } |
6931 | 6880 |
6932 @override | 6881 @override |
6933 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6882 E accept<E>(AstVisitor<E> visitor) => visitor.visitLabel(this); |
6934 visitor.visitLabel(this); | |
6935 | 6883 |
6936 @override | 6884 @override |
6937 void visitChildren(AstVisitor visitor) { | 6885 void visitChildren(AstVisitor visitor) { |
6938 _label?.accept(visitor); | 6886 _label?.accept(visitor); |
6939 } | 6887 } |
6940 } | 6888 } |
6941 | 6889 |
6942 /** | 6890 /** |
6943 * A library directive. | 6891 * A library directive. |
6944 * | 6892 * |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6989 | 6937 |
6990 @override | 6938 @override |
6991 LibraryIdentifier get name => _name; | 6939 LibraryIdentifier get name => _name; |
6992 | 6940 |
6993 @override | 6941 @override |
6994 void set name(LibraryIdentifier name) { | 6942 void set name(LibraryIdentifier name) { |
6995 _name = _becomeParentOf(name as AstNodeImpl); | 6943 _name = _becomeParentOf(name as AstNodeImpl); |
6996 } | 6944 } |
6997 | 6945 |
6998 @override | 6946 @override |
6999 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 6947 E accept<E>(AstVisitor<E> visitor) => visitor.visitLibraryDirective(this); |
7000 visitor.visitLibraryDirective(this); | |
7001 | 6948 |
7002 @override | 6949 @override |
7003 void visitChildren(AstVisitor visitor) { | 6950 void visitChildren(AstVisitor visitor) { |
7004 super.visitChildren(visitor); | 6951 super.visitChildren(visitor); |
7005 _name?.accept(visitor); | 6952 _name?.accept(visitor); |
7006 } | 6953 } |
7007 } | 6954 } |
7008 | 6955 |
7009 /** | 6956 /** |
7010 * The identifier for a library. | 6957 * The identifier for a library. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7063 @override | 7010 @override |
7064 int get precedence => 15; | 7011 int get precedence => 15; |
7065 | 7012 |
7066 @override | 7013 @override |
7067 Element get propagatedElement => null; | 7014 Element get propagatedElement => null; |
7068 | 7015 |
7069 @override | 7016 @override |
7070 Element get staticElement => null; | 7017 Element get staticElement => null; |
7071 | 7018 |
7072 @override | 7019 @override |
7073 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7020 E accept<E>(AstVisitor<E> visitor) => visitor.visitLibraryIdentifier(this); |
7074 visitor.visitLibraryIdentifier(this); | |
7075 | 7021 |
7076 @override | 7022 @override |
7077 void visitChildren(AstVisitor visitor) { | 7023 void visitChildren(AstVisitor visitor) { |
7078 _components.accept(visitor); | 7024 _components.accept(visitor); |
7079 } | 7025 } |
7080 } | 7026 } |
7081 | 7027 |
7082 /** | 7028 /** |
7083 * A list literal. | 7029 * A list literal. |
7084 * | 7030 * |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7134 ..addAll(_elements) | 7080 ..addAll(_elements) |
7135 ..add(rightBracket); | 7081 ..add(rightBracket); |
7136 | 7082 |
7137 @override | 7083 @override |
7138 NodeList<Expression> get elements => _elements; | 7084 NodeList<Expression> get elements => _elements; |
7139 | 7085 |
7140 @override | 7086 @override |
7141 Token get endToken => rightBracket; | 7087 Token get endToken => rightBracket; |
7142 | 7088 |
7143 @override | 7089 @override |
7144 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7090 E accept<E>(AstVisitor<E> visitor) => visitor.visitListLiteral(this); |
7145 visitor.visitListLiteral(this); | |
7146 | 7091 |
7147 @override | 7092 @override |
7148 void visitChildren(AstVisitor visitor) { | 7093 void visitChildren(AstVisitor visitor) { |
7149 super.visitChildren(visitor); | 7094 super.visitChildren(visitor); |
7150 _elements.accept(visitor); | 7095 _elements.accept(visitor); |
7151 } | 7096 } |
7152 } | 7097 } |
7153 | 7098 |
7154 /** | 7099 /** |
7155 * A node that represents a literal expression. | 7100 * A node that represents a literal expression. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7240 | 7185 |
7241 @override | 7186 @override |
7242 Expression get value => _value; | 7187 Expression get value => _value; |
7243 | 7188 |
7244 @override | 7189 @override |
7245 void set value(Expression expression) { | 7190 void set value(Expression expression) { |
7246 _value = _becomeParentOf(expression as AstNodeImpl); | 7191 _value = _becomeParentOf(expression as AstNodeImpl); |
7247 } | 7192 } |
7248 | 7193 |
7249 @override | 7194 @override |
7250 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7195 E accept<E>(AstVisitor<E> visitor) => visitor.visitMapLiteralEntry(this); |
7251 visitor.visitMapLiteralEntry(this); | |
7252 | 7196 |
7253 @override | 7197 @override |
7254 void visitChildren(AstVisitor visitor) { | 7198 void visitChildren(AstVisitor visitor) { |
7255 _key?.accept(visitor); | 7199 _key?.accept(visitor); |
7256 _value?.accept(visitor); | 7200 _value?.accept(visitor); |
7257 } | 7201 } |
7258 } | 7202 } |
7259 | 7203 |
7260 /** | 7204 /** |
7261 * A literal map. | 7205 * A literal map. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7312 ..addAll(entries) | 7256 ..addAll(entries) |
7313 ..add(rightBracket); | 7257 ..add(rightBracket); |
7314 | 7258 |
7315 @override | 7259 @override |
7316 Token get endToken => rightBracket; | 7260 Token get endToken => rightBracket; |
7317 | 7261 |
7318 @override | 7262 @override |
7319 NodeList<MapLiteralEntry> get entries => _entries; | 7263 NodeList<MapLiteralEntry> get entries => _entries; |
7320 | 7264 |
7321 @override | 7265 @override |
7322 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7266 E accept<E>(AstVisitor<E> visitor) => visitor.visitMapLiteral(this); |
7323 visitor.visitMapLiteral(this); | |
7324 | 7267 |
7325 @override | 7268 @override |
7326 void visitChildren(AstVisitor visitor) { | 7269 void visitChildren(AstVisitor visitor) { |
7327 super.visitChildren(visitor); | 7270 super.visitChildren(visitor); |
7328 _entries.accept(visitor); | 7271 _entries.accept(visitor); |
7329 } | 7272 } |
7330 } | 7273 } |
7331 | 7274 |
7332 /** | 7275 /** |
7333 * A method declaration. | 7276 * A method declaration. |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7524 | 7467 |
7525 @override | 7468 @override |
7526 TypeParameterList get typeParameters => _typeParameters; | 7469 TypeParameterList get typeParameters => _typeParameters; |
7527 | 7470 |
7528 @override | 7471 @override |
7529 void set typeParameters(TypeParameterList typeParameters) { | 7472 void set typeParameters(TypeParameterList typeParameters) { |
7530 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); | 7473 _typeParameters = _becomeParentOf(typeParameters as AstNodeImpl); |
7531 } | 7474 } |
7532 | 7475 |
7533 @override | 7476 @override |
7534 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7477 E accept<E>(AstVisitor<E> visitor) => visitor.visitMethodDeclaration(this); |
7535 visitor.visitMethodDeclaration(this); | |
7536 | 7478 |
7537 @override | 7479 @override |
7538 void visitChildren(AstVisitor visitor) { | 7480 void visitChildren(AstVisitor visitor) { |
7539 super.visitChildren(visitor); | 7481 super.visitChildren(visitor); |
7540 _returnType?.accept(visitor); | 7482 _returnType?.accept(visitor); |
7541 _name?.accept(visitor); | 7483 _name?.accept(visitor); |
7542 _typeParameters?.accept(visitor); | 7484 _typeParameters?.accept(visitor); |
7543 _parameters?.accept(visitor); | 7485 _parameters?.accept(visitor); |
7544 _body?.accept(visitor); | 7486 _body?.accept(visitor); |
7545 } | 7487 } |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7646 | 7588 |
7647 @override | 7589 @override |
7648 Expression get target => _target; | 7590 Expression get target => _target; |
7649 | 7591 |
7650 @override | 7592 @override |
7651 void set target(Expression expression) { | 7593 void set target(Expression expression) { |
7652 _target = _becomeParentOf(expression as AstNodeImpl); | 7594 _target = _becomeParentOf(expression as AstNodeImpl); |
7653 } | 7595 } |
7654 | 7596 |
7655 @override | 7597 @override |
7656 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7598 E accept<E>(AstVisitor<E> visitor) => visitor.visitMethodInvocation(this); |
7657 visitor.visitMethodInvocation(this); | |
7658 | 7599 |
7659 @override | 7600 @override |
7660 void visitChildren(AstVisitor visitor) { | 7601 void visitChildren(AstVisitor visitor) { |
7661 _target?.accept(visitor); | 7602 _target?.accept(visitor); |
7662 _methodName?.accept(visitor); | 7603 _methodName?.accept(visitor); |
7663 _typeArguments?.accept(visitor); | 7604 _typeArguments?.accept(visitor); |
7664 _argumentList?.accept(visitor); | 7605 _argumentList?.accept(visitor); |
7665 } | 7606 } |
7666 } | 7607 } |
7667 | 7608 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7753 | 7694 |
7754 @override | 7695 @override |
7755 void set name(Label identifier) { | 7696 void set name(Label identifier) { |
7756 _name = _becomeParentOf(identifier as AstNodeImpl); | 7697 _name = _becomeParentOf(identifier as AstNodeImpl); |
7757 } | 7698 } |
7758 | 7699 |
7759 @override | 7700 @override |
7760 int get precedence => 0; | 7701 int get precedence => 0; |
7761 | 7702 |
7762 @override | 7703 @override |
7763 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7704 E accept<E>(AstVisitor<E> visitor) => visitor.visitNamedExpression(this); |
7764 visitor.visitNamedExpression(this); | |
7765 | 7705 |
7766 @override | 7706 @override |
7767 void visitChildren(AstVisitor visitor) { | 7707 void visitChildren(AstVisitor visitor) { |
7768 _name?.accept(visitor); | 7708 _name?.accept(visitor); |
7769 _expression?.accept(visitor); | 7709 _expression?.accept(visitor); |
7770 } | 7710 } |
7771 } | 7711 } |
7772 | 7712 |
7773 /** | 7713 /** |
7774 * A node that represents a directive that impacts the namespace of a library. | 7714 * A node that represents a directive that impacts the namespace of a library. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7890 | 7830 |
7891 @override | 7831 @override |
7892 StringLiteral get name => _name; | 7832 StringLiteral get name => _name; |
7893 | 7833 |
7894 @override | 7834 @override |
7895 void set name(StringLiteral name) { | 7835 void set name(StringLiteral name) { |
7896 _name = _becomeParentOf(name as AstNodeImpl); | 7836 _name = _becomeParentOf(name as AstNodeImpl); |
7897 } | 7837 } |
7898 | 7838 |
7899 @override | 7839 @override |
7900 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7840 E accept<E>(AstVisitor<E> visitor) => visitor.visitNativeClause(this); |
7901 visitor.visitNativeClause(this); | |
7902 | 7841 |
7903 @override | 7842 @override |
7904 void visitChildren(AstVisitor visitor) { | 7843 void visitChildren(AstVisitor visitor) { |
7905 _name?.accept(visitor); | 7844 _name?.accept(visitor); |
7906 } | 7845 } |
7907 } | 7846 } |
7908 | 7847 |
7909 /** | 7848 /** |
7910 * A function body that consists of a native keyword followed by a string | 7849 * A function body that consists of a native keyword followed by a string |
7911 * literal. | 7850 * literal. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7956 | 7895 |
7957 @override | 7896 @override |
7958 StringLiteral get stringLiteral => _stringLiteral; | 7897 StringLiteral get stringLiteral => _stringLiteral; |
7959 | 7898 |
7960 @override | 7899 @override |
7961 void set stringLiteral(StringLiteral stringLiteral) { | 7900 void set stringLiteral(StringLiteral stringLiteral) { |
7962 _stringLiteral = _becomeParentOf(stringLiteral as AstNodeImpl); | 7901 _stringLiteral = _becomeParentOf(stringLiteral as AstNodeImpl); |
7963 } | 7902 } |
7964 | 7903 |
7965 @override | 7904 @override |
7966 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 7905 E accept<E>(AstVisitor<E> visitor) => visitor.visitNativeFunctionBody(this); |
7967 visitor.visitNativeFunctionBody(this); | |
7968 | 7906 |
7969 @override | 7907 @override |
7970 void visitChildren(AstVisitor visitor) { | 7908 void visitChildren(AstVisitor visitor) { |
7971 _stringLiteral?.accept(visitor); | 7909 _stringLiteral?.accept(visitor); |
7972 } | 7910 } |
7973 } | 7911 } |
7974 | 7912 |
7975 /** | 7913 /** |
7976 * A list of AST nodes that have a common parent. | 7914 * A list of AST nodes that have a common parent. |
7977 */ | 7915 */ |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8260 Token get beginToken => literal; | 8198 Token get beginToken => literal; |
8261 | 8199 |
8262 @override | 8200 @override |
8263 Iterable<SyntacticEntity> get childEntities => | 8201 Iterable<SyntacticEntity> get childEntities => |
8264 new ChildEntities()..add(literal); | 8202 new ChildEntities()..add(literal); |
8265 | 8203 |
8266 @override | 8204 @override |
8267 Token get endToken => literal; | 8205 Token get endToken => literal; |
8268 | 8206 |
8269 @override | 8207 @override |
8270 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8208 E accept<E>(AstVisitor<E> visitor) => visitor.visitNullLiteral(this); |
8271 visitor.visitNullLiteral(this); | |
8272 | 8209 |
8273 @override | 8210 @override |
8274 void visitChildren(AstVisitor visitor) { | 8211 void visitChildren(AstVisitor visitor) { |
8275 // There are no children to visit. | 8212 // There are no children to visit. |
8276 } | 8213 } |
8277 } | 8214 } |
8278 | 8215 |
8279 /** | 8216 /** |
8280 * A parenthesized expression. | 8217 * A parenthesized expression. |
8281 * | 8218 * |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8335 // This is somewhat inefficient, but it avoids a stack overflow in the | 8272 // This is somewhat inefficient, but it avoids a stack overflow in the |
8336 // degenerate case. | 8273 // degenerate case. |
8337 Expression expression = _expression; | 8274 Expression expression = _expression; |
8338 while (expression is ParenthesizedExpressionImpl) { | 8275 while (expression is ParenthesizedExpressionImpl) { |
8339 expression = (expression as ParenthesizedExpressionImpl)._expression; | 8276 expression = (expression as ParenthesizedExpressionImpl)._expression; |
8340 } | 8277 } |
8341 return expression; | 8278 return expression; |
8342 } | 8279 } |
8343 | 8280 |
8344 @override | 8281 @override |
8345 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8282 E accept<E>(AstVisitor<E> visitor) => |
8346 visitor.visitParenthesizedExpression(this); | 8283 visitor.visitParenthesizedExpression(this); |
8347 | 8284 |
8348 @override | 8285 @override |
8349 void visitChildren(AstVisitor visitor) { | 8286 void visitChildren(AstVisitor visitor) { |
8350 _expression?.accept(visitor); | 8287 _expression?.accept(visitor); |
8351 } | 8288 } |
8352 } | 8289 } |
8353 | 8290 |
8354 /** | 8291 /** |
8355 * A part directive. | 8292 * A part directive. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8389 @override | 8326 @override |
8390 Token get firstTokenAfterCommentAndMetadata => partKeyword; | 8327 Token get firstTokenAfterCommentAndMetadata => partKeyword; |
8391 | 8328 |
8392 @override | 8329 @override |
8393 Token get keyword => partKeyword; | 8330 Token get keyword => partKeyword; |
8394 | 8331 |
8395 @override | 8332 @override |
8396 CompilationUnitElement get uriElement => element as CompilationUnitElement; | 8333 CompilationUnitElement get uriElement => element as CompilationUnitElement; |
8397 | 8334 |
8398 @override | 8335 @override |
8399 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8336 E accept<E>(AstVisitor<E> visitor) => visitor.visitPartDirective(this); |
8400 visitor.visitPartDirective(this); | |
8401 } | 8337 } |
8402 | 8338 |
8403 /** | 8339 /** |
8404 * A part-of directive. | 8340 * A part-of directive. |
8405 * | 8341 * |
8406 * partOfDirective ::= | 8342 * partOfDirective ::= |
8407 * [Annotation] 'part' 'of' [Identifier] ';' | 8343 * [Annotation] 'part' 'of' [Identifier] ';' |
8408 */ | 8344 */ |
8409 class PartOfDirectiveImpl extends DirectiveImpl implements PartOfDirective { | 8345 class PartOfDirectiveImpl extends DirectiveImpl implements PartOfDirective { |
8410 /** | 8346 /** |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8481 | 8417 |
8482 @override | 8418 @override |
8483 StringLiteral get uri => _uri; | 8419 StringLiteral get uri => _uri; |
8484 | 8420 |
8485 @override | 8421 @override |
8486 void set uri(StringLiteral uri) { | 8422 void set uri(StringLiteral uri) { |
8487 _uri = _becomeParentOf(uri as AstNodeImpl); | 8423 _uri = _becomeParentOf(uri as AstNodeImpl); |
8488 } | 8424 } |
8489 | 8425 |
8490 @override | 8426 @override |
8491 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8427 E accept<E>(AstVisitor<E> visitor) => visitor.visitPartOfDirective(this); |
8492 visitor.visitPartOfDirective(this); | |
8493 | 8428 |
8494 @override | 8429 @override |
8495 void visitChildren(AstVisitor visitor) { | 8430 void visitChildren(AstVisitor visitor) { |
8496 super.visitChildren(visitor); | 8431 super.visitChildren(visitor); |
8497 _libraryName?.accept(visitor); | 8432 _libraryName?.accept(visitor); |
8498 _uri?.accept(visitor); | 8433 _uri?.accept(visitor); |
8499 } | 8434 } |
8500 } | 8435 } |
8501 | 8436 |
8502 /** | 8437 /** |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8600 return null; | 8535 return null; |
8601 } | 8536 } |
8602 List<ParameterElement> parameters = staticElement.parameters; | 8537 List<ParameterElement> parameters = staticElement.parameters; |
8603 if (parameters.length < 1) { | 8538 if (parameters.length < 1) { |
8604 return null; | 8539 return null; |
8605 } | 8540 } |
8606 return parameters[0]; | 8541 return parameters[0]; |
8607 } | 8542 } |
8608 | 8543 |
8609 @override | 8544 @override |
8610 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8545 E accept<E>(AstVisitor<E> visitor) => visitor.visitPostfixExpression(this); |
8611 visitor.visitPostfixExpression(this); | |
8612 | 8546 |
8613 @override | 8547 @override |
8614 void visitChildren(AstVisitor visitor) { | 8548 void visitChildren(AstVisitor visitor) { |
8615 _operand?.accept(visitor); | 8549 _operand?.accept(visitor); |
8616 } | 8550 } |
8617 } | 8551 } |
8618 | 8552 |
8619 /** | 8553 /** |
8620 * An identifier that is prefixed or an access to an object property where the | 8554 * An identifier that is prefixed or an access to an object property where the |
8621 * target of the property access is a simple identifier. | 8555 * target of the property access is a simple identifier. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8720 | 8654 |
8721 @override | 8655 @override |
8722 Element get staticElement { | 8656 Element get staticElement { |
8723 if (_identifier == null) { | 8657 if (_identifier == null) { |
8724 return null; | 8658 return null; |
8725 } | 8659 } |
8726 return _identifier.staticElement; | 8660 return _identifier.staticElement; |
8727 } | 8661 } |
8728 | 8662 |
8729 @override | 8663 @override |
8730 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8664 E accept<E>(AstVisitor<E> visitor) => visitor.visitPrefixedIdentifier(this); |
8731 visitor.visitPrefixedIdentifier(this); | |
8732 | 8665 |
8733 @override | 8666 @override |
8734 void visitChildren(AstVisitor visitor) { | 8667 void visitChildren(AstVisitor visitor) { |
8735 _prefix?.accept(visitor); | 8668 _prefix?.accept(visitor); |
8736 _identifier?.accept(visitor); | 8669 _identifier?.accept(visitor); |
8737 } | 8670 } |
8738 } | 8671 } |
8739 | 8672 |
8740 /** | 8673 /** |
8741 * A prefix unary expression. | 8674 * A prefix unary expression. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8833 return null; | 8766 return null; |
8834 } | 8767 } |
8835 List<ParameterElement> parameters = staticElement.parameters; | 8768 List<ParameterElement> parameters = staticElement.parameters; |
8836 if (parameters.length < 1) { | 8769 if (parameters.length < 1) { |
8837 return null; | 8770 return null; |
8838 } | 8771 } |
8839 return parameters[0]; | 8772 return parameters[0]; |
8840 } | 8773 } |
8841 | 8774 |
8842 @override | 8775 @override |
8843 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8776 E accept<E>(AstVisitor<E> visitor) => visitor.visitPrefixExpression(this); |
8844 visitor.visitPrefixExpression(this); | |
8845 | 8777 |
8846 @override | 8778 @override |
8847 void visitChildren(AstVisitor visitor) { | 8779 void visitChildren(AstVisitor visitor) { |
8848 _operand?.accept(visitor); | 8780 _operand?.accept(visitor); |
8849 } | 8781 } |
8850 } | 8782 } |
8851 | 8783 |
8852 /** | 8784 /** |
8853 * The access of a property of an object. | 8785 * The access of a property of an object. |
8854 * | 8786 * |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8934 | 8866 |
8935 @override | 8867 @override |
8936 Expression get target => _target; | 8868 Expression get target => _target; |
8937 | 8869 |
8938 @override | 8870 @override |
8939 void set target(Expression expression) { | 8871 void set target(Expression expression) { |
8940 _target = _becomeParentOf(expression as AstNodeImpl); | 8872 _target = _becomeParentOf(expression as AstNodeImpl); |
8941 } | 8873 } |
8942 | 8874 |
8943 @override | 8875 @override |
8944 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8876 E accept<E>(AstVisitor<E> visitor) => visitor.visitPropertyAccess(this); |
8945 visitor.visitPropertyAccess(this); | |
8946 | 8877 |
8947 @override | 8878 @override |
8948 void visitChildren(AstVisitor visitor) { | 8879 void visitChildren(AstVisitor visitor) { |
8949 _target?.accept(visitor); | 8880 _target?.accept(visitor); |
8950 _propertyName?.accept(visitor); | 8881 _propertyName?.accept(visitor); |
8951 } | 8882 } |
8952 } | 8883 } |
8953 | 8884 |
8954 /** | 8885 /** |
8955 * The invocation of a constructor in the same class from within a constructor's | 8886 * The invocation of a constructor in the same class from within a constructor's |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9023 | 8954 |
9024 @override | 8955 @override |
9025 void set constructorName(SimpleIdentifier identifier) { | 8956 void set constructorName(SimpleIdentifier identifier) { |
9026 _constructorName = _becomeParentOf(identifier as AstNodeImpl); | 8957 _constructorName = _becomeParentOf(identifier as AstNodeImpl); |
9027 } | 8958 } |
9028 | 8959 |
9029 @override | 8960 @override |
9030 Token get endToken => _argumentList.endToken; | 8961 Token get endToken => _argumentList.endToken; |
9031 | 8962 |
9032 @override | 8963 @override |
9033 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 8964 E accept<E>(AstVisitor<E> visitor) => |
9034 visitor.visitRedirectingConstructorInvocation(this); | 8965 visitor.visitRedirectingConstructorInvocation(this); |
9035 | 8966 |
9036 @override | 8967 @override |
9037 void visitChildren(AstVisitor visitor) { | 8968 void visitChildren(AstVisitor visitor) { |
9038 _constructorName?.accept(visitor); | 8969 _constructorName?.accept(visitor); |
9039 _argumentList?.accept(visitor); | 8970 _argumentList?.accept(visitor); |
9040 } | 8971 } |
9041 } | 8972 } |
9042 | 8973 |
9043 /** | 8974 /** |
(...skipping 21 matching lines...) Expand all Loading... |
9065 Iterable<SyntacticEntity> get childEntities => | 8996 Iterable<SyntacticEntity> get childEntities => |
9066 new ChildEntities()..add(rethrowKeyword); | 8997 new ChildEntities()..add(rethrowKeyword); |
9067 | 8998 |
9068 @override | 8999 @override |
9069 Token get endToken => rethrowKeyword; | 9000 Token get endToken => rethrowKeyword; |
9070 | 9001 |
9071 @override | 9002 @override |
9072 int get precedence => 0; | 9003 int get precedence => 0; |
9073 | 9004 |
9074 @override | 9005 @override |
9075 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9006 E accept<E>(AstVisitor<E> visitor) => visitor.visitRethrowExpression(this); |
9076 visitor.visitRethrowExpression(this); | |
9077 | 9007 |
9078 @override | 9008 @override |
9079 void visitChildren(AstVisitor visitor) { | 9009 void visitChildren(AstVisitor visitor) { |
9080 // There are no children to visit. | 9010 // There are no children to visit. |
9081 } | 9011 } |
9082 } | 9012 } |
9083 | 9013 |
9084 /** | 9014 /** |
9085 * A return statement. | 9015 * A return statement. |
9086 * | 9016 * |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9125 | 9055 |
9126 @override | 9056 @override |
9127 Expression get expression => _expression; | 9057 Expression get expression => _expression; |
9128 | 9058 |
9129 @override | 9059 @override |
9130 void set expression(Expression expression) { | 9060 void set expression(Expression expression) { |
9131 _expression = _becomeParentOf(expression as AstNodeImpl); | 9061 _expression = _becomeParentOf(expression as AstNodeImpl); |
9132 } | 9062 } |
9133 | 9063 |
9134 @override | 9064 @override |
9135 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9065 E accept<E>(AstVisitor<E> visitor) => visitor.visitReturnStatement(this); |
9136 visitor.visitReturnStatement(this); | |
9137 | 9066 |
9138 @override | 9067 @override |
9139 void visitChildren(AstVisitor visitor) { | 9068 void visitChildren(AstVisitor visitor) { |
9140 _expression?.accept(visitor); | 9069 _expression?.accept(visitor); |
9141 } | 9070 } |
9142 } | 9071 } |
9143 | 9072 |
9144 /** | 9073 /** |
9145 * A script tag that can optionally occur at the beginning of a compilation unit
. | 9074 * A script tag that can optionally occur at the beginning of a compilation unit
. |
9146 * | 9075 * |
(...skipping 15 matching lines...) Expand all Loading... |
9162 Token get beginToken => scriptTag; | 9091 Token get beginToken => scriptTag; |
9163 | 9092 |
9164 @override | 9093 @override |
9165 Iterable<SyntacticEntity> get childEntities => | 9094 Iterable<SyntacticEntity> get childEntities => |
9166 new ChildEntities()..add(scriptTag); | 9095 new ChildEntities()..add(scriptTag); |
9167 | 9096 |
9168 @override | 9097 @override |
9169 Token get endToken => scriptTag; | 9098 Token get endToken => scriptTag; |
9170 | 9099 |
9171 @override | 9100 @override |
9172 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9101 E accept<E>(AstVisitor<E> visitor) => visitor.visitScriptTag(this); |
9173 visitor.visitScriptTag(this); | |
9174 | 9102 |
9175 @override | 9103 @override |
9176 void visitChildren(AstVisitor visitor) { | 9104 void visitChildren(AstVisitor visitor) { |
9177 // There are no children to visit. | 9105 // There are no children to visit. |
9178 } | 9106 } |
9179 } | 9107 } |
9180 | 9108 |
9181 /** | 9109 /** |
9182 * A combinator that restricts the names being imported to those in a given list
. | 9110 * A combinator that restricts the names being imported to those in a given list
. |
9183 * | 9111 * |
(...skipping 20 matching lines...) Expand all Loading... |
9204 ..add(keyword) | 9132 ..add(keyword) |
9205 ..addAll(_shownNames); | 9133 ..addAll(_shownNames); |
9206 | 9134 |
9207 @override | 9135 @override |
9208 Token get endToken => _shownNames.endToken; | 9136 Token get endToken => _shownNames.endToken; |
9209 | 9137 |
9210 @override | 9138 @override |
9211 NodeList<SimpleIdentifier> get shownNames => _shownNames; | 9139 NodeList<SimpleIdentifier> get shownNames => _shownNames; |
9212 | 9140 |
9213 @override | 9141 @override |
9214 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9142 E accept<E>(AstVisitor<E> visitor) => visitor.visitShowCombinator(this); |
9215 visitor.visitShowCombinator(this); | |
9216 | 9143 |
9217 @override | 9144 @override |
9218 void visitChildren(AstVisitor visitor) { | 9145 void visitChildren(AstVisitor visitor) { |
9219 _shownNames.accept(visitor); | 9146 _shownNames.accept(visitor); |
9220 } | 9147 } |
9221 } | 9148 } |
9222 | 9149 |
9223 /** | 9150 /** |
9224 * A simple formal parameter. | 9151 * A simple formal parameter. |
9225 * | 9152 * |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9290 | 9217 |
9291 @override | 9218 @override |
9292 TypeAnnotation get type => _type; | 9219 TypeAnnotation get type => _type; |
9293 | 9220 |
9294 @override | 9221 @override |
9295 void set type(TypeAnnotation type) { | 9222 void set type(TypeAnnotation type) { |
9296 _type = _becomeParentOf(type as AstNodeImpl); | 9223 _type = _becomeParentOf(type as AstNodeImpl); |
9297 } | 9224 } |
9298 | 9225 |
9299 @override | 9226 @override |
9300 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9227 E accept<E>(AstVisitor<E> visitor) => |
9301 visitor.visitSimpleFormalParameter(this); | 9228 visitor.visitSimpleFormalParameter(this); |
9302 | 9229 |
9303 @override | 9230 @override |
9304 void visitChildren(AstVisitor visitor) { | 9231 void visitChildren(AstVisitor visitor) { |
9305 super.visitChildren(visitor); | 9232 super.visitChildren(visitor); |
9306 _type?.accept(visitor); | 9233 _type?.accept(visitor); |
9307 identifier?.accept(visitor); | 9234 identifier?.accept(visitor); |
9308 } | 9235 } |
9309 } | 9236 } |
9310 | 9237 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9403 | 9330 |
9404 @override | 9331 @override |
9405 Element get staticElement => _staticElement; | 9332 Element get staticElement => _staticElement; |
9406 | 9333 |
9407 @override | 9334 @override |
9408 void set staticElement(Element element) { | 9335 void set staticElement(Element element) { |
9409 _staticElement = element; | 9336 _staticElement = element; |
9410 } | 9337 } |
9411 | 9338 |
9412 @override | 9339 @override |
9413 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9340 E accept<E>(AstVisitor<E> visitor) => visitor.visitSimpleIdentifier(this); |
9414 visitor.visitSimpleIdentifier(this); | |
9415 | 9341 |
9416 @override | 9342 @override |
9417 bool inDeclarationContext() => false; | 9343 bool inDeclarationContext() => false; |
9418 | 9344 |
9419 @override | 9345 @override |
9420 bool inGetterContext() { | 9346 bool inGetterContext() { |
9421 // TODO(brianwilkerson) Convert this to a getter. | 9347 // TODO(brianwilkerson) Convert this to a getter. |
9422 AstNode initialParent = this.parent; | 9348 AstNode initialParent = this.parent; |
9423 AstNode parent = initialParent; | 9349 AstNode parent = initialParent; |
9424 AstNode target = this; | 9350 AstNode target = this; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9584 @override | 9510 @override |
9585 void set value(String string) { | 9511 void set value(String string) { |
9586 _value = StringUtilities.intern(_value); | 9512 _value = StringUtilities.intern(_value); |
9587 } | 9513 } |
9588 | 9514 |
9589 StringLexemeHelper get _helper { | 9515 StringLexemeHelper get _helper { |
9590 return new StringLexemeHelper(literal.lexeme, true, true); | 9516 return new StringLexemeHelper(literal.lexeme, true, true); |
9591 } | 9517 } |
9592 | 9518 |
9593 @override | 9519 @override |
9594 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9520 E accept<E>(AstVisitor<E> visitor) => visitor.visitSimpleStringLiteral(this); |
9595 visitor.visitSimpleStringLiteral(this); | |
9596 | 9521 |
9597 @override | 9522 @override |
9598 void visitChildren(AstVisitor visitor) { | 9523 void visitChildren(AstVisitor visitor) { |
9599 // There are no children to visit. | 9524 // There are no children to visit. |
9600 } | 9525 } |
9601 | 9526 |
9602 @override | 9527 @override |
9603 void _appendStringValue(StringBuffer buffer) { | 9528 void _appendStringValue(StringBuffer buffer) { |
9604 buffer.write(value); | 9529 buffer.write(value); |
9605 } | 9530 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9696 @override | 9621 @override |
9697 bool get isSingleQuoted => _firstHelper.isSingleQuoted; | 9622 bool get isSingleQuoted => _firstHelper.isSingleQuoted; |
9698 | 9623 |
9699 StringLexemeHelper get _firstHelper { | 9624 StringLexemeHelper get _firstHelper { |
9700 InterpolationString lastString = _elements.first; | 9625 InterpolationString lastString = _elements.first; |
9701 String lexeme = lastString.contents.lexeme; | 9626 String lexeme = lastString.contents.lexeme; |
9702 return new StringLexemeHelper(lexeme, true, false); | 9627 return new StringLexemeHelper(lexeme, true, false); |
9703 } | 9628 } |
9704 | 9629 |
9705 @override | 9630 @override |
9706 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9631 E accept<E>(AstVisitor<E> visitor) => visitor.visitStringInterpolation(this); |
9707 visitor.visitStringInterpolation(this); | |
9708 | 9632 |
9709 @override | 9633 @override |
9710 void visitChildren(AstVisitor visitor) { | 9634 void visitChildren(AstVisitor visitor) { |
9711 _elements.accept(visitor); | 9635 _elements.accept(visitor); |
9712 } | 9636 } |
9713 | 9637 |
9714 @override | 9638 @override |
9715 void _appendStringValue(StringBuffer buffer) { | 9639 void _appendStringValue(StringBuffer buffer) { |
9716 throw new ArgumentError(); | 9640 throw new ArgumentError(); |
9717 } | 9641 } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9913 | 9837 |
9914 @override | 9838 @override |
9915 void set constructorName(SimpleIdentifier identifier) { | 9839 void set constructorName(SimpleIdentifier identifier) { |
9916 _constructorName = _becomeParentOf(identifier as AstNodeImpl); | 9840 _constructorName = _becomeParentOf(identifier as AstNodeImpl); |
9917 } | 9841 } |
9918 | 9842 |
9919 @override | 9843 @override |
9920 Token get endToken => _argumentList.endToken; | 9844 Token get endToken => _argumentList.endToken; |
9921 | 9845 |
9922 @override | 9846 @override |
9923 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9847 E accept<E>(AstVisitor<E> visitor) => |
9924 visitor.visitSuperConstructorInvocation(this); | 9848 visitor.visitSuperConstructorInvocation(this); |
9925 | 9849 |
9926 @override | 9850 @override |
9927 void visitChildren(AstVisitor visitor) { | 9851 void visitChildren(AstVisitor visitor) { |
9928 _constructorName?.accept(visitor); | 9852 _constructorName?.accept(visitor); |
9929 _argumentList?.accept(visitor); | 9853 _argumentList?.accept(visitor); |
9930 } | 9854 } |
9931 } | 9855 } |
9932 | 9856 |
9933 /** | 9857 /** |
(...skipping 20 matching lines...) Expand all Loading... |
9954 Iterable<SyntacticEntity> get childEntities => | 9878 Iterable<SyntacticEntity> get childEntities => |
9955 new ChildEntities()..add(superKeyword); | 9879 new ChildEntities()..add(superKeyword); |
9956 | 9880 |
9957 @override | 9881 @override |
9958 Token get endToken => superKeyword; | 9882 Token get endToken => superKeyword; |
9959 | 9883 |
9960 @override | 9884 @override |
9961 int get precedence => 16; | 9885 int get precedence => 16; |
9962 | 9886 |
9963 @override | 9887 @override |
9964 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9888 E accept<E>(AstVisitor<E> visitor) => visitor.visitSuperExpression(this); |
9965 visitor.visitSuperExpression(this); | |
9966 | 9889 |
9967 @override | 9890 @override |
9968 void visitChildren(AstVisitor visitor) { | 9891 void visitChildren(AstVisitor visitor) { |
9969 // There are no children to visit. | 9892 // There are no children to visit. |
9970 } | 9893 } |
9971 } | 9894 } |
9972 | 9895 |
9973 /** | 9896 /** |
9974 * A case in a switch statement. | 9897 * A case in a switch statement. |
9975 * | 9898 * |
(...skipping 26 matching lines...) Expand all Loading... |
10002 | 9925 |
10003 @override | 9926 @override |
10004 Expression get expression => _expression; | 9927 Expression get expression => _expression; |
10005 | 9928 |
10006 @override | 9929 @override |
10007 void set expression(Expression expression) { | 9930 void set expression(Expression expression) { |
10008 _expression = _becomeParentOf(expression as AstNodeImpl); | 9931 _expression = _becomeParentOf(expression as AstNodeImpl); |
10009 } | 9932 } |
10010 | 9933 |
10011 @override | 9934 @override |
10012 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9935 E accept<E>(AstVisitor<E> visitor) => visitor.visitSwitchCase(this); |
10013 visitor.visitSwitchCase(this); | |
10014 | 9936 |
10015 @override | 9937 @override |
10016 void visitChildren(AstVisitor visitor) { | 9938 void visitChildren(AstVisitor visitor) { |
10017 labels.accept(visitor); | 9939 labels.accept(visitor); |
10018 _expression?.accept(visitor); | 9940 _expression?.accept(visitor); |
10019 statements.accept(visitor); | 9941 statements.accept(visitor); |
10020 } | 9942 } |
10021 } | 9943 } |
10022 | 9944 |
10023 /** | 9945 /** |
(...skipping 12 matching lines...) Expand all Loading... |
10036 : super(labels, keyword, colon, statements); | 9958 : super(labels, keyword, colon, statements); |
10037 | 9959 |
10038 @override | 9960 @override |
10039 Iterable<SyntacticEntity> get childEntities => new ChildEntities() | 9961 Iterable<SyntacticEntity> get childEntities => new ChildEntities() |
10040 ..addAll(labels) | 9962 ..addAll(labels) |
10041 ..add(keyword) | 9963 ..add(keyword) |
10042 ..add(colon) | 9964 ..add(colon) |
10043 ..addAll(statements); | 9965 ..addAll(statements); |
10044 | 9966 |
10045 @override | 9967 @override |
10046 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 9968 E accept<E>(AstVisitor<E> visitor) => visitor.visitSwitchDefault(this); |
10047 visitor.visitSwitchDefault(this); | |
10048 | 9969 |
10049 @override | 9970 @override |
10050 void visitChildren(AstVisitor visitor) { | 9971 void visitChildren(AstVisitor visitor) { |
10051 labels.accept(visitor); | 9972 labels.accept(visitor); |
10052 statements.accept(visitor); | 9973 statements.accept(visitor); |
10053 } | 9974 } |
10054 } | 9975 } |
10055 | 9976 |
10056 /** | 9977 /** |
10057 * An element within a switch statement. | 9978 * An element within a switch statement. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10194 | 10115 |
10195 @override | 10116 @override |
10196 void set expression(Expression expression) { | 10117 void set expression(Expression expression) { |
10197 _expression = _becomeParentOf(expression as AstNodeImpl); | 10118 _expression = _becomeParentOf(expression as AstNodeImpl); |
10198 } | 10119 } |
10199 | 10120 |
10200 @override | 10121 @override |
10201 NodeList<SwitchMember> get members => _members; | 10122 NodeList<SwitchMember> get members => _members; |
10202 | 10123 |
10203 @override | 10124 @override |
10204 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10125 E accept<E>(AstVisitor<E> visitor) => visitor.visitSwitchStatement(this); |
10205 visitor.visitSwitchStatement(this); | |
10206 | 10126 |
10207 @override | 10127 @override |
10208 void visitChildren(AstVisitor visitor) { | 10128 void visitChildren(AstVisitor visitor) { |
10209 _expression?.accept(visitor); | 10129 _expression?.accept(visitor); |
10210 _members.accept(visitor); | 10130 _members.accept(visitor); |
10211 } | 10131 } |
10212 } | 10132 } |
10213 | 10133 |
10214 /** | 10134 /** |
10215 * A symbol literal expression. | 10135 * A symbol literal expression. |
(...skipping 23 matching lines...) Expand all Loading... |
10239 @override | 10159 @override |
10240 // TODO(paulberry): add "." tokens. | 10160 // TODO(paulberry): add "." tokens. |
10241 Iterable<SyntacticEntity> get childEntities => new ChildEntities() | 10161 Iterable<SyntacticEntity> get childEntities => new ChildEntities() |
10242 ..add(poundSign) | 10162 ..add(poundSign) |
10243 ..addAll(components); | 10163 ..addAll(components); |
10244 | 10164 |
10245 @override | 10165 @override |
10246 Token get endToken => components[components.length - 1]; | 10166 Token get endToken => components[components.length - 1]; |
10247 | 10167 |
10248 @override | 10168 @override |
10249 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10169 E accept<E>(AstVisitor<E> visitor) => visitor.visitSymbolLiteral(this); |
10250 visitor.visitSymbolLiteral(this); | |
10251 | 10170 |
10252 @override | 10171 @override |
10253 void visitChildren(AstVisitor visitor) { | 10172 void visitChildren(AstVisitor visitor) { |
10254 // There are no children to visit. | 10173 // There are no children to visit. |
10255 } | 10174 } |
10256 } | 10175 } |
10257 | 10176 |
10258 /** | 10177 /** |
10259 * A this expression. | 10178 * A this expression. |
10260 * | 10179 * |
(...skipping 18 matching lines...) Expand all Loading... |
10279 Iterable<SyntacticEntity> get childEntities => | 10198 Iterable<SyntacticEntity> get childEntities => |
10280 new ChildEntities()..add(thisKeyword); | 10199 new ChildEntities()..add(thisKeyword); |
10281 | 10200 |
10282 @override | 10201 @override |
10283 Token get endToken => thisKeyword; | 10202 Token get endToken => thisKeyword; |
10284 | 10203 |
10285 @override | 10204 @override |
10286 int get precedence => 16; | 10205 int get precedence => 16; |
10287 | 10206 |
10288 @override | 10207 @override |
10289 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10208 E accept<E>(AstVisitor<E> visitor) => visitor.visitThisExpression(this); |
10290 visitor.visitThisExpression(this); | |
10291 | 10209 |
10292 @override | 10210 @override |
10293 void visitChildren(AstVisitor visitor) { | 10211 void visitChildren(AstVisitor visitor) { |
10294 // There are no children to visit. | 10212 // There are no children to visit. |
10295 } | 10213 } |
10296 } | 10214 } |
10297 | 10215 |
10298 /** | 10216 /** |
10299 * A throw expression. | 10217 * A throw expression. |
10300 * | 10218 * |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10339 | 10257 |
10340 @override | 10258 @override |
10341 void set expression(Expression expression) { | 10259 void set expression(Expression expression) { |
10342 _expression = _becomeParentOf(expression as AstNodeImpl); | 10260 _expression = _becomeParentOf(expression as AstNodeImpl); |
10343 } | 10261 } |
10344 | 10262 |
10345 @override | 10263 @override |
10346 int get precedence => 0; | 10264 int get precedence => 0; |
10347 | 10265 |
10348 @override | 10266 @override |
10349 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10267 E accept<E>(AstVisitor<E> visitor) => visitor.visitThrowExpression(this); |
10350 visitor.visitThrowExpression(this); | |
10351 | 10268 |
10352 @override | 10269 @override |
10353 void visitChildren(AstVisitor visitor) { | 10270 void visitChildren(AstVisitor visitor) { |
10354 _expression?.accept(visitor); | 10271 _expression?.accept(visitor); |
10355 } | 10272 } |
10356 } | 10273 } |
10357 | 10274 |
10358 /** | 10275 /** |
10359 * The declaration of one or more top-level variables of the same type. | 10276 * The declaration of one or more top-level variables of the same type. |
10360 * | 10277 * |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10403 | 10320 |
10404 @override | 10321 @override |
10405 VariableDeclarationList get variables => _variableList; | 10322 VariableDeclarationList get variables => _variableList; |
10406 | 10323 |
10407 @override | 10324 @override |
10408 void set variables(VariableDeclarationList variables) { | 10325 void set variables(VariableDeclarationList variables) { |
10409 _variableList = _becomeParentOf(variables as AstNodeImpl); | 10326 _variableList = _becomeParentOf(variables as AstNodeImpl); |
10410 } | 10327 } |
10411 | 10328 |
10412 @override | 10329 @override |
10413 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10330 E accept<E>(AstVisitor<E> visitor) => |
10414 visitor.visitTopLevelVariableDeclaration(this); | 10331 visitor.visitTopLevelVariableDeclaration(this); |
10415 | 10332 |
10416 @override | 10333 @override |
10417 void visitChildren(AstVisitor visitor) { | 10334 void visitChildren(AstVisitor visitor) { |
10418 super.visitChildren(visitor); | 10335 super.visitChildren(visitor); |
10419 _variableList?.accept(visitor); | 10336 _variableList?.accept(visitor); |
10420 } | 10337 } |
10421 } | 10338 } |
10422 | 10339 |
10423 /** | 10340 /** |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10509 | 10426 |
10510 @override | 10427 @override |
10511 Block get finallyBlock => _finallyBlock; | 10428 Block get finallyBlock => _finallyBlock; |
10512 | 10429 |
10513 @override | 10430 @override |
10514 void set finallyBlock(Block block) { | 10431 void set finallyBlock(Block block) { |
10515 _finallyBlock = _becomeParentOf(block as AstNodeImpl); | 10432 _finallyBlock = _becomeParentOf(block as AstNodeImpl); |
10516 } | 10433 } |
10517 | 10434 |
10518 @override | 10435 @override |
10519 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10436 E accept<E>(AstVisitor<E> visitor) => visitor.visitTryStatement(this); |
10520 visitor.visitTryStatement(this); | |
10521 | 10437 |
10522 @override | 10438 @override |
10523 void visitChildren(AstVisitor visitor) { | 10439 void visitChildren(AstVisitor visitor) { |
10524 _body?.accept(visitor); | 10440 _body?.accept(visitor); |
10525 _catchClauses.accept(visitor); | 10441 _catchClauses.accept(visitor); |
10526 _finallyBlock?.accept(visitor); | 10442 _finallyBlock?.accept(visitor); |
10527 } | 10443 } |
10528 } | 10444 } |
10529 | 10445 |
10530 /** | 10446 /** |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10615 // TODO(paulberry): Add commas. | 10531 // TODO(paulberry): Add commas. |
10616 Iterable<SyntacticEntity> get childEntities => new ChildEntities() | 10532 Iterable<SyntacticEntity> get childEntities => new ChildEntities() |
10617 ..add(leftBracket) | 10533 ..add(leftBracket) |
10618 ..addAll(_arguments) | 10534 ..addAll(_arguments) |
10619 ..add(rightBracket); | 10535 ..add(rightBracket); |
10620 | 10536 |
10621 @override | 10537 @override |
10622 Token get endToken => rightBracket; | 10538 Token get endToken => rightBracket; |
10623 | 10539 |
10624 @override | 10540 @override |
10625 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10541 E accept<E>(AstVisitor<E> visitor) => visitor.visitTypeArgumentList(this); |
10626 visitor.visitTypeArgumentList(this); | |
10627 | 10542 |
10628 @override | 10543 @override |
10629 void visitChildren(AstVisitor visitor) { | 10544 void visitChildren(AstVisitor visitor) { |
10630 _arguments.accept(visitor); | 10545 _arguments.accept(visitor); |
10631 } | 10546 } |
10632 } | 10547 } |
10633 | 10548 |
10634 /** | 10549 /** |
10635 * A literal that has a type associated with it. | 10550 * A literal that has a type associated with it. |
10636 * | 10551 * |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10750 | 10665 |
10751 @override | 10666 @override |
10752 TypeArgumentList get typeArguments => _typeArguments; | 10667 TypeArgumentList get typeArguments => _typeArguments; |
10753 | 10668 |
10754 @override | 10669 @override |
10755 void set typeArguments(TypeArgumentList typeArguments) { | 10670 void set typeArguments(TypeArgumentList typeArguments) { |
10756 _typeArguments = _becomeParentOf(typeArguments as AstNodeImpl); | 10671 _typeArguments = _becomeParentOf(typeArguments as AstNodeImpl); |
10757 } | 10672 } |
10758 | 10673 |
10759 @override | 10674 @override |
10760 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10675 E accept<E>(AstVisitor<E> visitor) => visitor.visitTypeName(this); |
10761 visitor.visitTypeName(this); | |
10762 | 10676 |
10763 @override | 10677 @override |
10764 void visitChildren(AstVisitor visitor) { | 10678 void visitChildren(AstVisitor visitor) { |
10765 _name?.accept(visitor); | 10679 _name?.accept(visitor); |
10766 _typeArguments?.accept(visitor); | 10680 _typeArguments?.accept(visitor); |
10767 } | 10681 } |
10768 } | 10682 } |
10769 | 10683 |
10770 /** | 10684 /** |
10771 * A type parameter. | 10685 * A type parameter. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10833 | 10747 |
10834 @override | 10748 @override |
10835 SimpleIdentifier get name => _name; | 10749 SimpleIdentifier get name => _name; |
10836 | 10750 |
10837 @override | 10751 @override |
10838 void set name(SimpleIdentifier identifier) { | 10752 void set name(SimpleIdentifier identifier) { |
10839 _name = _becomeParentOf(identifier as AstNodeImpl); | 10753 _name = _becomeParentOf(identifier as AstNodeImpl); |
10840 } | 10754 } |
10841 | 10755 |
10842 @override | 10756 @override |
10843 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10757 E accept<E>(AstVisitor<E> visitor) => visitor.visitTypeParameter(this); |
10844 visitor.visitTypeParameter(this); | |
10845 | 10758 |
10846 @override | 10759 @override |
10847 void visitChildren(AstVisitor visitor) { | 10760 void visitChildren(AstVisitor visitor) { |
10848 super.visitChildren(visitor); | 10761 super.visitChildren(visitor); |
10849 _name?.accept(visitor); | 10762 _name?.accept(visitor); |
10850 _bound?.accept(visitor); | 10763 _bound?.accept(visitor); |
10851 } | 10764 } |
10852 } | 10765 } |
10853 | 10766 |
10854 /** | 10767 /** |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10890 ..addAll(_typeParameters) | 10803 ..addAll(_typeParameters) |
10891 ..add(rightBracket); | 10804 ..add(rightBracket); |
10892 | 10805 |
10893 @override | 10806 @override |
10894 Token get endToken => rightBracket; | 10807 Token get endToken => rightBracket; |
10895 | 10808 |
10896 @override | 10809 @override |
10897 NodeList<TypeParameter> get typeParameters => _typeParameters; | 10810 NodeList<TypeParameter> get typeParameters => _typeParameters; |
10898 | 10811 |
10899 @override | 10812 @override |
10900 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 10813 E accept<E>(AstVisitor<E> visitor) => visitor.visitTypeParameterList(this); |
10901 visitor.visitTypeParameterList(this); | |
10902 | 10814 |
10903 @override | 10815 @override |
10904 void visitChildren(AstVisitor visitor) { | 10816 void visitChildren(AstVisitor visitor) { |
10905 _typeParameters.accept(visitor); | 10817 _typeParameters.accept(visitor); |
10906 } | 10818 } |
10907 } | 10819 } |
10908 | 10820 |
10909 /** | 10821 /** |
10910 * A directive that references a URI. | 10822 * A directive that references a URI. |
10911 * | 10823 * |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11126 | 11038 |
11127 @override | 11039 @override |
11128 SimpleIdentifier get name => _name; | 11040 SimpleIdentifier get name => _name; |
11129 | 11041 |
11130 @override | 11042 @override |
11131 void set name(SimpleIdentifier identifier) { | 11043 void set name(SimpleIdentifier identifier) { |
11132 _name = _becomeParentOf(identifier as AstNodeImpl); | 11044 _name = _becomeParentOf(identifier as AstNodeImpl); |
11133 } | 11045 } |
11134 | 11046 |
11135 @override | 11047 @override |
11136 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11048 E accept<E>(AstVisitor<E> visitor) => visitor.visitVariableDeclaration(this); |
11137 visitor.visitVariableDeclaration(this); | |
11138 | 11049 |
11139 @override | 11050 @override |
11140 void visitChildren(AstVisitor visitor) { | 11051 void visitChildren(AstVisitor visitor) { |
11141 super.visitChildren(visitor); | 11052 super.visitChildren(visitor); |
11142 _name?.accept(visitor); | 11053 _name?.accept(visitor); |
11143 _initializer?.accept(visitor); | 11054 _initializer?.accept(visitor); |
11144 } | 11055 } |
11145 } | 11056 } |
11146 | 11057 |
11147 /** | 11058 /** |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11222 | 11133 |
11223 @override | 11134 @override |
11224 void set type(TypeAnnotation type) { | 11135 void set type(TypeAnnotation type) { |
11225 _type = _becomeParentOf(type as AstNodeImpl); | 11136 _type = _becomeParentOf(type as AstNodeImpl); |
11226 } | 11137 } |
11227 | 11138 |
11228 @override | 11139 @override |
11229 NodeList<VariableDeclaration> get variables => _variables; | 11140 NodeList<VariableDeclaration> get variables => _variables; |
11230 | 11141 |
11231 @override | 11142 @override |
11232 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11143 E accept<E>(AstVisitor<E> visitor) => |
11233 visitor.visitVariableDeclarationList(this); | 11144 visitor.visitVariableDeclarationList(this); |
11234 | 11145 |
11235 @override | 11146 @override |
11236 void visitChildren(AstVisitor visitor) { | 11147 void visitChildren(AstVisitor visitor) { |
11237 super.visitChildren(visitor); | 11148 super.visitChildren(visitor); |
11238 _type?.accept(visitor); | 11149 _type?.accept(visitor); |
11239 _variables.accept(visitor); | 11150 _variables.accept(visitor); |
11240 } | 11151 } |
11241 } | 11152 } |
11242 | 11153 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11279 | 11190 |
11280 @override | 11191 @override |
11281 VariableDeclarationList get variables => _variableList; | 11192 VariableDeclarationList get variables => _variableList; |
11282 | 11193 |
11283 @override | 11194 @override |
11284 void set variables(VariableDeclarationList variables) { | 11195 void set variables(VariableDeclarationList variables) { |
11285 _variableList = _becomeParentOf(variables as AstNodeImpl); | 11196 _variableList = _becomeParentOf(variables as AstNodeImpl); |
11286 } | 11197 } |
11287 | 11198 |
11288 @override | 11199 @override |
11289 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11200 E accept<E>(AstVisitor<E> visitor) => |
11290 visitor.visitVariableDeclarationStatement(this); | 11201 visitor.visitVariableDeclarationStatement(this); |
11291 | 11202 |
11292 @override | 11203 @override |
11293 void visitChildren(AstVisitor visitor) { | 11204 void visitChildren(AstVisitor visitor) { |
11294 _variableList?.accept(visitor); | 11205 _variableList?.accept(visitor); |
11295 } | 11206 } |
11296 } | 11207 } |
11297 | 11208 |
11298 /** | 11209 /** |
11299 * A while statement. | 11210 * A while statement. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11360 | 11271 |
11361 @override | 11272 @override |
11362 void set condition(Expression expression) { | 11273 void set condition(Expression expression) { |
11363 _condition = _becomeParentOf(expression as AstNodeImpl); | 11274 _condition = _becomeParentOf(expression as AstNodeImpl); |
11364 } | 11275 } |
11365 | 11276 |
11366 @override | 11277 @override |
11367 Token get endToken => _body.endToken; | 11278 Token get endToken => _body.endToken; |
11368 | 11279 |
11369 @override | 11280 @override |
11370 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11281 E accept<E>(AstVisitor<E> visitor) => visitor.visitWhileStatement(this); |
11371 visitor.visitWhileStatement(this); | |
11372 | 11282 |
11373 @override | 11283 @override |
11374 void visitChildren(AstVisitor visitor) { | 11284 void visitChildren(AstVisitor visitor) { |
11375 _condition?.accept(visitor); | 11285 _condition?.accept(visitor); |
11376 _body?.accept(visitor); | 11286 _body?.accept(visitor); |
11377 } | 11287 } |
11378 } | 11288 } |
11379 | 11289 |
11380 /** | 11290 /** |
11381 * The with clause in a class declaration. | 11291 * The with clause in a class declaration. |
(...skipping 28 matching lines...) Expand all Loading... |
11410 ..add(withKeyword) | 11320 ..add(withKeyword) |
11411 ..addAll(_mixinTypes); | 11321 ..addAll(_mixinTypes); |
11412 | 11322 |
11413 @override | 11323 @override |
11414 Token get endToken => _mixinTypes.endToken; | 11324 Token get endToken => _mixinTypes.endToken; |
11415 | 11325 |
11416 @override | 11326 @override |
11417 NodeList<TypeName> get mixinTypes => _mixinTypes; | 11327 NodeList<TypeName> get mixinTypes => _mixinTypes; |
11418 | 11328 |
11419 @override | 11329 @override |
11420 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11330 E accept<E>(AstVisitor<E> visitor) => visitor.visitWithClause(this); |
11421 visitor.visitWithClause(this); | |
11422 | 11331 |
11423 @override | 11332 @override |
11424 void visitChildren(AstVisitor visitor) { | 11333 void visitChildren(AstVisitor visitor) { |
11425 _mixinTypes.accept(visitor); | 11334 _mixinTypes.accept(visitor); |
11426 } | 11335 } |
11427 } | 11336 } |
11428 | 11337 |
11429 /** | 11338 /** |
11430 * A yield statement. | 11339 * A yield statement. |
11431 * | 11340 * |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11487 | 11396 |
11488 @override | 11397 @override |
11489 Expression get expression => _expression; | 11398 Expression get expression => _expression; |
11490 | 11399 |
11491 @override | 11400 @override |
11492 void set expression(Expression expression) { | 11401 void set expression(Expression expression) { |
11493 _expression = _becomeParentOf(expression as AstNodeImpl); | 11402 _expression = _becomeParentOf(expression as AstNodeImpl); |
11494 } | 11403 } |
11495 | 11404 |
11496 @override | 11405 @override |
11497 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => | 11406 E accept<E>(AstVisitor<E> visitor) => visitor.visitYieldStatement(this); |
11498 visitor.visitYieldStatement(this); | |
11499 | 11407 |
11500 @override | 11408 @override |
11501 void visitChildren(AstVisitor visitor) { | 11409 void visitChildren(AstVisitor visitor) { |
11502 _expression?.accept(visitor); | 11410 _expression?.accept(visitor); |
11503 } | 11411 } |
11504 } | 11412 } |
OLD | NEW |