Skip to content

Function calls scopes, builtin clobbering #413

@nfour

Description

@nfour

TS and JS Grammar Extension version: 0.0.18 / latest

Fig1.

Image

Fig2.

Image

const blah = Storage(1);
console.log;
console.log();
  • Storage in this example isn't given a function scope even though it's just a regular function factory.
  • console.log on its own also has identical scopes to console.log().
  • new StorageLibrary( also has no function-call related scoping

Ideally we would have a function-call scope added to a function being called like so myFn().

This is a continuation from #367 and #364 as vscode significantly changed the tmLanguage implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions