Skip to content

Implement @inline (JSDoc) approach for aggressive inlining #3

Description

@Cheatoid

I was thinking about a cleaner approach for aggressive inlining...
Here is what I think would be better than what we have right now (__inline):

/** @inline */
function InlineExample(name: string) {
    print(`Hello ${name}`);
}
InlineExample("World");

⬇ output Lua ⬇

do
    local name = "World"
    print("Hello " .. name)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions