scope-tree

0.3.0 • Public • Published

Scope Tree

Module scope

const moduleScope = new ModuleScope()
moduleScope.addImport('any', 'Banana', Banana)

Function scope

const functionScope = new FunctionScope()
functionScope.addVariable('const', 'any', 'banana', 'Banana')

Class scope

const classScope = new ClassScope()
classScope.addMethod('any', 'getFruit', [
  ['any', 'name']
])

Package Sidebar

Install

npm i scope-tree

Weekly Downloads

5

Version

0.3.0

License

MIT

Unpacked Size

22.8 kB

Total Files

11

Last publish

Collaborators

  • kippis
  • firetux