Skip to content

Commit a4a1f2c

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Update precedence for instantiation and constant nodes in ast-to-text
TEST=existing Change-Id: I6269aaef293765e68e5f119184f0d24f40da9aec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212821 Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Dmitry Stefantsov <[email protected]>
1 parent 48d8225 commit a4a1f2c

File tree

240 files changed

+1007
-1007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+1007
-1007
lines changed

pkg/front_end/testcases/const_functions/const_functions_const_ctor.dart.strong.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
99
final field core::String name;
1010
const constructor •(core::String name) → self::Simple
1111
: self::Simple::name = name, super core::Object::•() {
12-
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1));
12+
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1);
1313
}
1414
}
1515
class A extends core::Object /*hasConstConstructor*/ {
@@ -25,7 +25,7 @@ static const field self::A var3 = #C3;
2525
static method fn() → self::A
2626
return new self::A::•();
2727
static method main() → void {
28-
exp::Expect::equals((#C2).{self::Simple::name}{core::String}, #C1);
28+
exp::Expect::equals(#C2.{self::Simple::name}{core::String}, #C1);
2929
}
3030

3131
constants {

pkg/front_end/testcases/const_functions/const_functions_const_ctor.dart.strong.transformed.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
99
final field core::String name;
1010
const constructor •(core::String name) → self::Simple
1111
: self::Simple::name = name, super core::Object::•() {
12-
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1));
12+
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1);
1313
}
1414
}
1515
class A extends core::Object /*hasConstConstructor*/ {
@@ -25,7 +25,7 @@ static const field self::A var3 = #C3;
2525
static method fn() → self::A
2626
return new self::A::•();
2727
static method main() → void {
28-
exp::Expect::equals((#C2).{self::Simple::name}{core::String}, #C1);
28+
exp::Expect::equals(#C2.{self::Simple::name}{core::String}, #C1);
2929
}
3030

3131
constants {

pkg/front_end/testcases/const_functions/const_functions_const_ctor.dart.weak.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
99
final field core::String name;
1010
const constructor •(core::String name) → self::Simple
1111
: self::Simple::name = name, super core::Object::•() {
12-
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1));
12+
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1);
1313
}
1414
}
1515
class A extends core::Object /*hasConstConstructor*/ {
@@ -25,7 +25,7 @@ static const field self::A var3 = #C3;
2525
static method fn() → self::A
2626
return new self::A::•();
2727
static method main() → void {
28-
exp::Expect::equals((#C2).{self::Simple::name}{core::String}, #C1);
28+
exp::Expect::equals(#C2.{self::Simple::name}{core::String}, #C1);
2929
}
3030

3131
constants {

pkg/front_end/testcases/const_functions/const_functions_const_ctor.dart.weak.transformed.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
99
final field core::String name;
1010
const constructor •(core::String name) → self::Simple
1111
: self::Simple::name = name, super core::Object::•() {
12-
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1));
12+
assert(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1);
1313
}
1414
}
1515
class A extends core::Object /*hasConstConstructor*/ {
@@ -25,7 +25,7 @@ static const field self::A var3 = #C3;
2525
static method fn() → self::A
2626
return new self::A::•();
2727
static method main() → void {
28-
exp::Expect::equals((#C2).{self::Simple::name}{core::String}, #C1);
28+
exp::Expect::equals(#C2.{self::Simple::name}{core::String}, #C1);
2929
}
3030

3131
constants {

pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
4141
final field core::String name;
4242
const constructor •(core::String name) → self::Simple
4343
: self::Simple::name = name, super core::Object::•() {
44-
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1)));
44+
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1));
4545
}
4646
}
4747
class Simple2 extends core::Object /*hasConstConstructor*/ {

pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
4141
final field core::String name;
4242
const constructor •(core::String name) → self::Simple
4343
: self::Simple::name = name, super core::Object::•() {
44-
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1)));
44+
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1));
4545
}
4646
}
4747
class Simple2 extends core::Object /*hasConstConstructor*/ {

pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
4141
final field core::String name;
4242
const constructor •(core::String name) → self::Simple
4343
: self::Simple::name = name, super core::Object::•() {
44-
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1)));
44+
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1));
4545
}
4646
}
4747
class Simple2 extends core::Object /*hasConstConstructor*/ {

pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Simple extends core::Object /*hasConstConstructor*/ {
4141
final field core::String name;
4242
const constructor •(core::String name) → self::Simple
4343
: self::Simple::name = name, super core::Object::•() {
44-
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} (#C1)));
44+
assert(!(this.{self::Simple::name}{core::String} =={core::String::==}{(core::Object) → core::bool} #C1));
4545
}
4646
}
4747
class Simple2 extends core::Object /*hasConstConstructor*/ {

pkg/front_end/testcases/const_functions/const_functions_if_statements.dart.strong.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static method ifTest(core::int a) → core::int {
2929
}
3030
}
3131
static method ifTest2(core::int a) → core::int {
32-
if(a =={core::num::==}{(core::Object) → core::bool} (#C4)) {
32+
if(a =={core::num::==}{(core::Object) → core::bool} #C4) {
3333
return 100;
3434
}
3535
else {

pkg/front_end/testcases/const_functions/const_functions_if_statements.dart.strong.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static method ifTest(core::int a) → core::int {
2929
}
3030
}
3131
static method ifTest2(core::int a) → core::int {
32-
if(a =={core::num::==}{(core::Object) → core::bool} (#C4)) {
32+
if(a =={core::num::==}{(core::Object) → core::bool} #C4) {
3333
return 100;
3434
}
3535
else {

0 commit comments

Comments
 (0)