Skip to content

[bundle/generator] Quantity values require to #2195

@github-actions

Description

@github-actions

but it's not currently handled.

we should probably add it as an implicit symbol no matter what(?)

# TODO(bundle/generator) Quantity values require `to`


        conf.analyzeBlock(filename, doParse(filename, isFile=true).a)

proc addImplicit(syms: var seq[string]) =
    # TODO(bundle/generator) Quantity values require `to`
    #  but it's not currently handled.
    #  we should probably add it as an implicit symbol no matter what(?)
    #  labels: bundler,bug
    if syms.contains("define"):
        syms.add(@["ensure", "function", "if", "greater?", "equal?", "return", "neg", "to"])

    if syms.contains("is"):
        syms.add("function")

    if syms.contains("sortable"):
        syms.add(@["if", "return", "neg", "greater?", "equal?"])

    if syms.contains("function") or syms.contains("method"):
        syms.add(@["any?", "array", "is?", "ensure"])

    if syms.contains("export"):
        syms.add("do")

    if syms.contains("add"):
        syms.add(@["inc", "mul"])


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbundlerIssues related to the built-in application bundlertodoAutomatically generated issues from TODOs in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions