Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scopes = map[ast.Type]bool{ ast.TypeStmtFunction: true, ast.TypeExprClosure: true, ast.TypeExprArrowFunction: true, ast.TypeStmtClass: true, ast.TypeStmtClassMethod: true, ast.TypeStmtTrait: true, ast.TypeStmtInterface: true, } ClassLikeScopes = map[ast.Type]bool{ ast.TypeStmtClass: true, ast.TypeStmtTrait: true, ast.TypeStmtInterface: true, } NameScopes = map[ast.Type]bool{ ast.TypeNameRelative: true, ast.TypeNameFullyQualified: true, ast.TypeName: true, } )
Scopes are node kinds that declare a scope where for example variables are scoped to.
Functions ¶
func IsClassLike ¶
func IsNonClassLikeScope ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.