scope-tree
v0.3.0
Published
Module scope tree for CodeInspector
Downloads
11
Readme
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']
])