Skip to content

GetFormatSpecifierLocationsAndArity returns duplicated entries in computation expressions #16419

@auduchinok

Description

@auduchinok

Consider this case:

seq {
    sprintf "%d" 1
}

Calling GetFormatSpecifierLocationsAndArity on check file results will return duplicated entries for %s.

This could be happening due to some tree rewriting during computation expressions analysis. It also means that some analysis may be duplicated, worsening performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-ServiceVarious compiler service issues which do not belong to other labels/areas.BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions