Skip to content

Return statement is added before trailing white space in @timer trigger #9

@JakubLinhart

Description

@JakubLinhart

Currently transpiler adds default return value after comments, which seems odd:

on=@timer
call1

// here is some a comment
// here is another comment
return 0

preferred:

on=@timer
call1
return 0

// here is some a comment
// here is another comment

Tests:

        [TestMethod]
        public void Adds_return_statement_to_the_end_before_trailing_WS()
        {
            TranspileTriggerCheck(
@"on=@timer
call1

// here is some a comment
// here is another comment",
@"on=@timer
call1
return 0

// here is some a comment
// here is another comment
");
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions