Source File
scope.go
Belonging Package
github.com/dop251/goja/parser
package parserimport ()type _scope struct {outer *_scopeallowIn boolallowLet boolinIteration boolinSwitch boolinFuncParams boolinFunction boolinAsync boolallowAwait boolallowYield booldeclarationList []*ast.VariableDeclarationlabels []unistring.String}func ( *_parser) () {.scope = &_scope{outer: .scope,allowIn: true,}}func ( *_parser) () {.scope = .scope.outer}func ( *_scope) ( *ast.VariableDeclaration) {.declarationList = append(.declarationList, )}func ( *_scope) ( unistring.String) bool {for , := range .labels {if == {return true}}if .outer != nil && !.inFunction {// Crossing a function boundary to look for a label is verbotenreturn .outer.()}return false}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |