sixtyfps-compilerlib 0.1.2

Internal SixtyFPS compiler library
Documentation
/* LICENSE BEGIN
    This file is part of the SixtyFPS Project -- https://sixtyfps.io
    Copyright (c) 2021 Olivier Goffart <olivier.goffart@sixtyfps.io>
    Copyright (c) 2021 Simon Hausmann <simon.hausmann@sixtyfps.io>

    SPDX-License-Identifier: GPL-3.0-only
    This file is also available under commercial licensing terms.
    Please contact info@sixtyfps.io for more information.
LICENSE END */


SubElement := Rectangle {

    foo := Rectangle {
        background: yellow;
        hello := Rectangle {}
//              ^warning{duplicated element id 'hello'}
    }

    unique := Rectangle {
        background: yellow;
        world := Rectangle {}
//              ^warning{duplicated element id 'world'}
    }

    if (true) : hello := Rectangle {
//                      ^warning{duplicated element id 'hello'}
        world := Rectangle { }
//              ^warning{duplicated element id 'world'}
    }

    hello := Rectangle {}
//          ^warning{duplicated element id 'hello'}
}

TestCase := Rectangle {

    unique := Rectangle {
        foo := SubElement { }
//            ^warning{duplicated element id 'foo'}
    }

    bar := TouchArea {}
//        ^warning{duplicated element id 'bar'}

    Rectangle {
        foo := Text {}
//            ^warning{duplicated element id 'foo'}
        bar := Text {}
//            ^warning{duplicated element id 'bar'}
    }
}