scope-tree
Version:
Module scope tree for CodeInspector
28 lines (19 loc) • 412 B
Markdown
Scope Tree
==========
```coffee
const moduleScope = new ModuleScope()
moduleScope.addImport('any', 'Banana', Banana)
```
```coffee
const functionScope = new FunctionScope()
functionScope.addVariable('const', 'any', 'banana', 'Banana')
```
```coffee
const classScope = new ClassScope()
classScope.addMethod('any', 'getFruit', [
['any', 'name']
])
```