Use the tool to replace = with :=

This commit is contained in:
Olivier Goffart 2020-05-25 10:44:22 +02:00
parent 7be8b09b3b
commit d8601621c0
9 changed files with 14 additions and 14 deletions

View file

@ -1,5 +1,5 @@
component TwoRectangle = Rectangle { component TwoRectangle := Rectangle {
signal clicked; signal clicked;
@ -10,7 +10,7 @@ component TwoRectangle = Rectangle {
height: 25; height: 25;
color: red; color: red;
my_area = TouchArea { my_area := TouchArea {
width: 25; width: 25;
height: 25; height: 25;
clicked => { clicked } clicked => { clicked }
@ -20,7 +20,7 @@ component TwoRectangle = Rectangle {
} }
component ButtonRectangle = Rectangle { component ButtonRectangle := Rectangle {
signal clicked; signal clicked;
width: 100; width: 100;
height: 75; height: 75;
@ -31,7 +31,7 @@ component ButtonRectangle = Rectangle {
} }
} }
Hello = Rectangle { Hello := Rectangle {
signal foobar; signal foobar;
signal plus_clicked; signal plus_clicked;
@ -77,7 +77,7 @@ Hello = Rectangle {
color: black; color: black;
} }
} }
counter = Text { x: 100; y: 300; text: "0"; color: black; } counter := Text { x: 100; y: 300; text: "0"; color: black; }
ButtonRectangle { ButtonRectangle {
color: 4289374890; color: 4289374890;
x: 50; x: 50;

View file

@ -1,6 +1,6 @@
SuperSimple = Rectangle { SuperSimple := Rectangle {
color: green; color: green;
color: red; color: red;
// ^error{Duplicated property} // ^error{Duplicated property}

View file

@ -1,6 +1,6 @@
SuperSimple = Rectangle { SuperSimple := Rectangle {
color: green; color: green;
for xx in zz: Hello { for xx in zz: Hello {

View file

@ -1,6 +1,6 @@
SubElements = Rectangle { SubElements := Rectangle {
color: blue; color: blue;

View file

@ -1,11 +1,11 @@
component Inline1 = Rectangle { component Inline1 := Rectangle {
Rectangle { Rectangle {
x: 66; x: 66;
} }
} }
SubElements = Rectangle { SubElements := Rectangle {
Inline1 { Inline1 {
color: yellow; color: yellow;
invalid: yellow; invalid: yellow;

View file

@ -1,5 +1,5 @@
SubElements = Rectangle { SubElements := Rectangle {
signal foobar; signal foobar;
TouchArea { TouchArea {

View file

@ -1,6 +1,6 @@
SubElements = Rectangle { SubElements := Rectangle {
Rectangle { Rectangle {
color: yellow; color: yellow;

View file

@ -1,6 +1,6 @@
SuperSimple = Rectangle { SuperSimple := Rectangle {
color: green; color: green;
} }

View file

@ -1,6 +1,6 @@
SuperSimple = Rectangle { SuperSimple := Rectangle {
DoesNotExist { DoesNotExist {
// ^error{Unkown type DoesNotExist} // ^error{Unkown type DoesNotExist}
} }