Rename "assignment_of" -> "assignment_to".
This CL is a simple rename--all other diffs are due to re-sorting. Change-Id: I14d58ea9dc60dc9edad88ffb75da5cdf30bcf0dc Reviewed-on: https://dart-review.googlesource.com/66419 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
c1552c3728
commit
c9b197017c
@@ -837,32 +837,6 @@ void main() {
|
||||
}
|
||||
}
|
||||
|
||||
test_assignment_of_postfix_increment() async {
|
||||
addTestFile('''
|
||||
f(int x, int y) {
|
||||
x++ = y;
|
||||
}
|
||||
''');
|
||||
await resolveTestFile();
|
||||
expect(result.errors, isNotEmpty);
|
||||
var xElement = findElement.parameter('x');
|
||||
assertElement(findNode.simple('x++'), xElement);
|
||||
var yElement = findElement.parameter('y');
|
||||
assertElement(findNode.simple('y;'), yElement);
|
||||
}
|
||||
|
||||
test_assignment_of_unresolved_name() async {
|
||||
addTestFile('''
|
||||
f(int y) {
|
||||
x = y;
|
||||
}
|
||||
''');
|
||||
await resolveTestFile();
|
||||
expect(result.errors, isNotEmpty);
|
||||
var yElement = findElement.parameter('y');
|
||||
assertElement(findNode.simple('y;'), yElement);
|
||||
}
|
||||
|
||||
test_assignment_to_final_parameter() async {
|
||||
addTestFile('''
|
||||
f(final int x) {
|
||||
@@ -1004,6 +978,20 @@ g(x) {
|
||||
assertElement(findNode.simple('x;'), xElement);
|
||||
}
|
||||
|
||||
test_assignment_to_postfix_increment() async {
|
||||
addTestFile('''
|
||||
f(int x, int y) {
|
||||
x++ = y;
|
||||
}
|
||||
''');
|
||||
await resolveTestFile();
|
||||
expect(result.errors, isNotEmpty);
|
||||
var xElement = findElement.parameter('x');
|
||||
assertElement(findNode.simple('x++'), xElement);
|
||||
var yElement = findElement.parameter('y');
|
||||
assertElement(findNode.simple('y;'), yElement);
|
||||
}
|
||||
|
||||
test_assignment_to_prefix() async {
|
||||
var a = _p('/test/lib/a.dart');
|
||||
provider.newFile(a, '''
|
||||
@@ -1025,6 +1013,18 @@ main() {
|
||||
expect(pReference.staticType, isNull);
|
||||
}
|
||||
|
||||
test_assignment_to_unresolved_name() async {
|
||||
addTestFile('''
|
||||
f(int y) {
|
||||
x = y;
|
||||
}
|
||||
''');
|
||||
await resolveTestFile();
|
||||
expect(result.errors, isNotEmpty);
|
||||
var yElement = findElement.parameter('y');
|
||||
assertElement(findNode.simple('y;'), yElement);
|
||||
}
|
||||
|
||||
test_assignmentExpression_compound_indexExpression() async {
|
||||
String content = r'''
|
||||
main() {
|
||||
@@ -2080,7 +2080,7 @@ var v = (() => 42)();
|
||||
expect(closureElement.enclosingElement, same(variableInitializer));
|
||||
}
|
||||
|
||||
test_compound_assignment_of_postfix_increment() async {
|
||||
test_compound_assignment_to_postfix_increment() async {
|
||||
addTestFile('''
|
||||
f(int x, int y) {
|
||||
x++ += y;
|
||||
@@ -2094,7 +2094,7 @@ f(int x, int y) {
|
||||
assertElement(findNode.simple('y;'), yElement);
|
||||
}
|
||||
|
||||
test_compound_assignment_of_unresolved_name() async {
|
||||
test_compound_assignment_to_unresolved_name() async {
|
||||
addTestFile('''
|
||||
f(int y) {
|
||||
x += y;
|
||||
@@ -6382,7 +6382,7 @@ void f<T, U>(T a, U b) {}
|
||||
}
|
||||
}
|
||||
|
||||
test_null_aware_assignment_of_postfix_increment() async {
|
||||
test_null_aware_assignment_to_postfix_increment() async {
|
||||
addTestFile('''
|
||||
f(int x, int y) {
|
||||
x++ ??= y;
|
||||
|
||||
Reference in New Issue
Block a user