Skip to content

Bug: parseTree silently ignores showingMissingTokens parameter #152

@leogdion

Description

@leogdion

Description

In Sources/TokenVisitor/TreeNodeProtocol+Extensions.swift, parseTree(from:withFileName:showingMissingTokens:) hardcodes showMissingTokens: false when constructing TokenVisitor, silently discarding the caller-supplied value.

Fix

Forward the parameter instead of hardcoding:

let visitor = TokenVisitor<Self>(
    locationConverter: ...,
    showMissingTokens: showingMissingTokens  // was hardcoded false
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions