@@ -297,29 +297,19 @@ class C {}
297
297
298
298
@reflectiveTest
299
299
class ElementResolverTest with ResourceProviderMixin , ElementsTypesMixin {
300
- /**
301
- * The error listener to which errors will be reported.
302
- */
300
+ /// The error listener to which errors will be reported.
303
301
GatheringErrorListener _listener;
304
302
305
- /**
306
- * The type provider used to access the types.
307
- */
303
+ /// The type provider used to access the types.
308
304
TypeProvider _typeProvider;
309
305
310
- /**
311
- * The library containing the code being resolved.
312
- */
306
+ /// The library containing the code being resolved.
313
307
LibraryElementImpl _definingLibrary;
314
308
315
- /**
316
- * The resolver visitor that maintains the state for the resolver.
317
- */
309
+ /// The resolver visitor that maintains the state for the resolver.
318
310
ResolverVisitor _visitor;
319
311
320
- /**
321
- * The resolver being used to resolve the test cases.
322
- */
312
+ /// The resolver being used to resolve the test cases.
323
313
ElementResolver _resolver;
324
314
325
315
@override
@@ -960,9 +950,7 @@ class ElementResolverTest with ResourceProviderMixin, ElementsTypesMixin {
960
950
_listener.assertNoErrors ();
961
951
}
962
952
963
- /**
964
- * Create and return the resolver used by the tests.
965
- */
953
+ /// Create and return the resolver used by the tests.
966
954
void _createResolver () {
967
955
var context = TestAnalysisContext ();
968
956
_typeProvider = context.typeProviderLegacy;
@@ -991,56 +979,50 @@ class ElementResolverTest with ResourceProviderMixin, ElementsTypesMixin {
991
979
}
992
980
}
993
981
994
- /**
995
- * Return the element associated with the label of [statement] after the
996
- * resolver has resolved it. [labelElement] is the label element to be
997
- * defined in the statement's label scope, and [labelTarget] is the statement
998
- * the label resolves to.
999
- */
982
+ /// Return the element associated with the label of [statement] after the
983
+ /// resolver has resolved it. [labelElement] is the label element to be
984
+ /// defined in the statement's label scope, and [labelTarget] is the statement
985
+ /// the label resolves to.
1000
986
Element _resolveBreak (BreakStatement statement, LabelElementImpl labelElement,
1001
987
Statement labelTarget) {
1002
988
_resolveStatement (statement, labelElement, labelTarget);
1003
989
return statement.label.staticElement;
1004
990
}
1005
991
1006
- /**
1007
- * Return the element associated with the label [statement] after the
1008
- * resolver has resolved it. [labelElement] is the label element to be
1009
- * defined in the statement's label scope, and [labelTarget] is the AST node
1010
- * the label resolves to.
1011
- *
1012
- * @param statement the statement to be resolved
1013
- * @param labelElement the label element to be defined in the statement's label scope
1014
- * @return the element to which the statement's label was resolved
1015
- */
992
+ /// Return the element associated with the label [statement] after the
993
+ /// resolver has resolved it. [labelElement] is the label element to be
994
+ /// defined in the statement's label scope, and [labelTarget] is the AST node
995
+ /// the label resolves to.
996
+ ///
997
+ /// @param statement the statement to be resolved
998
+ /// @param labelElement the label element to be defined in the statement's
999
+ /// label scope
1000
+ /// @return the element to which the statement's label was resolved
1016
1001
Element _resolveContinue (ContinueStatement statement,
1017
1002
LabelElementImpl labelElement, AstNode labelTarget) {
1018
1003
_resolveStatement (statement, labelElement, labelTarget);
1019
1004
return statement.label.staticElement;
1020
1005
}
1021
1006
1022
- /**
1023
- * Return the element associated with the given identifier after the resolver has resolved the
1024
- * identifier.
1025
- *
1026
- * @param node the expression to be resolved
1027
- * @param definedElements the elements that are to be defined in the scope in which the element is
1028
- * being resolved
1029
- * @return the element to which the expression was resolved
1030
- */
1007
+ /// Return the element associated with the given identifier after the resolver
1008
+ /// has resolved the identifier.
1009
+ ///
1010
+ /// @param node the expression to be resolved
1011
+ /// @param definedElements the elements that are to be defined in the scope in
1012
+ /// which the element is being resolved
1013
+ /// @return the element to which the expression was resolved
1031
1014
Element _resolveIdentifier (Identifier node, [List <Element > definedElements]) {
1032
1015
_resolveNode (node, definedElements);
1033
1016
return node.staticElement;
1034
1017
}
1035
1018
1036
- /**
1037
- * Return the element associated with the given identifier after the resolver has resolved the
1038
- * identifier.
1039
- *
1040
- * @param node the expression to be resolved
1041
- * @param enclosingClass the element representing the class enclosing the identifier
1042
- * @return the element to which the expression was resolved
1043
- */
1019
+ /// Return the element associated with the given identifier after the resolver
1020
+ /// has resolved the identifier.
1021
+ ///
1022
+ /// @param node the expression to be resolved
1023
+ /// @param enclosingClass the element representing the class enclosing the
1024
+ /// identifier
1025
+ /// @return the element to which the expression was resolved
1044
1026
void _resolveInClass (AstNode node, ClassElement enclosingClass) {
1045
1027
Scope outerScope = _visitor.nameScope;
1046
1028
try {
@@ -1055,30 +1037,26 @@ class ElementResolverTest with ResourceProviderMixin, ElementsTypesMixin {
1055
1037
}
1056
1038
}
1057
1039
1058
- /**
1059
- * Return the element associated with the given expression after the resolver has resolved the
1060
- * expression.
1061
- *
1062
- * @param node the expression to be resolved
1063
- * @param definedElements the elements that are to be defined in the scope in which the element is
1064
- * being resolved
1065
- * @return the element to which the expression was resolved
1066
- */
1040
+ /// Return the element associated with the given expression after the resolver
1041
+ /// has resolved the expression.
1042
+ ///
1043
+ /// @param node the expression to be resolved
1044
+ /// @param definedElements the elements that are to be defined in the scope in
1045
+ /// which the element is being resolved
1046
+ /// @return the element to which the expression was resolved
1067
1047
Element _resolveIndexExpression (IndexExpression node,
1068
1048
[List <Element > definedElements]) {
1069
1049
_resolveNode (node, definedElements);
1070
1050
return node.staticElement;
1071
1051
}
1072
1052
1073
- /**
1074
- * Return the element associated with the given identifier after the resolver has resolved the
1075
- * identifier.
1076
- *
1077
- * @param node the expression to be resolved
1078
- * @param definedElements the elements that are to be defined in the scope in which the element is
1079
- * being resolved
1080
- * @return the element to which the expression was resolved
1081
- */
1053
+ /// Return the element associated with the given identifier after the resolver
1054
+ /// has resolved the identifier.
1055
+ ///
1056
+ /// @param node the expression to be resolved
1057
+ /// @param definedElements the elements that are to be defined in the scope in
1058
+ /// which the element is being resolved
1059
+ /// @return the element to which the expression was resolved
1082
1060
void _resolveNode (AstNode node, [List <Element > definedElements]) {
1083
1061
Scope outerScope = _visitor.nameScope;
1084
1062
try {
@@ -1095,14 +1073,13 @@ class ElementResolverTest with ResourceProviderMixin, ElementsTypesMixin {
1095
1073
}
1096
1074
}
1097
1075
1098
- /**
1099
- * Return the element associated with the label of the given statement after the resolver has
1100
- * resolved the statement.
1101
- *
1102
- * @param statement the statement to be resolved
1103
- * @param labelElement the label element to be defined in the statement's label scope
1104
- * @return the element to which the statement's label was resolved
1105
- */
1076
+ /// Return the element associated with the label of the given statement after
1077
+ /// the resolver has resolved the statement.
1078
+ ///
1079
+ /// @param statement the statement to be resolved
1080
+ /// @param labelElement the label element to be defined in the statement's
1081
+ /// label scope
1082
+ /// @return the element to which the statement's label was resolved
1106
1083
void _resolveStatement (
1107
1084
Statement statement, LabelElementImpl labelElement, AstNode labelTarget) {
1108
1085
LabelScope outerScope = _visitor.labelScope;
0 commit comments