bscript-lang
bscript-lang
com.github.gchudnov.bscript.lang
LangException
LangException
com.github.gchudnov.bscript.lang.ast
AST
AST
Access
Access
Add
Add
And
And
Ann
ArgDecl
ArgDecl
Assign
Assign
AstException
AstException
BinOp
Block
Block
BoolVal
BoolVal
Call
Call
ComAnn
CompiledExpr
CompiledExpr
ConstVal
DateTimeVal
DateTimeVal
DateVal
DateVal
DecimalVal
DecimalVal
Decl
Div
Div
DoubleVal
DoubleVal
EqOp
Equal
Equal
Expr
FieldDecl
FieldDecl
FloatVal
FloatVal
Greater
Greater
GreaterEqual
GreaterEqual
HasElementType
HasEvalType
HasName
HasPromoteToType
HasStaticTypeSafety
HasSymbol
If
If
Init
Init
IntVal
IntVal
LValue
Less
Less
LessEqual
LessEqual
LogicOp
LongVal
LongVal
MethodDecl
MethodDecl
Mod
Mod
Mul
Mul
Not
Not
NotEqual
NotEqual
NothingVal
NothingVal
Or
Or
RelOp
Stat
StdAnn
StdAnn
StrVal
StrVal
StructDecl
StructDecl
StructVal
StructVal
Sub
Sub
UnLogicOp
UnOp
UnaryMinus
UnaryMinus
Var
Var
VarDecl
VarDecl
Vec
Vec
VoidVal
VoidVal
com.github.gchudnov.bscript.lang.ast.visitors
TreeVisitor
com.github.gchudnov.bscript.lang.symbols
DeclType
Named
SBlock
SBuiltInType
SMethod
SStruct
SVar
Scope
Scope
ScopeStateException
Symbol
Symbol
SymbolRef
Type
Type
TypeRef
VectorType
com.github.gchudnov.bscript.lang.types
TypeNames
TypeNames
Types
Types
com.github.gchudnov.bscript.lang.util
Casting
LineOps
Show
Transform
bscript-lang
/
com.github.gchudnov.bscript.lang.util
/
Casting
Casting
object
Casting
Graph
Supertypes
Self type
class
Object
trait
Matchable
class
Any
Casting
.type
Extensions
Extensions
Extensions
extension
(ast:
AST
)
def
asArgDecl
:
Either
[
AstException
,
ArgDecl
]
def
asBlock
:
Either
[
AstException
,
Block
]
def
asConstVal
:
Either
[
AstException
,
ConstVal
]
def
asExpr
:
Either
[
AstException
,
Expr
]
def
asFieldDecl
:
Either
[
AstException
,
FieldDecl
]
def
asLValue
:
Either
[
AstException
,
LValue
]
def
asMethodDecl
:
Either
[
AstException
,
MethodDecl
]
def
asStructVal
:
Either
[
AstException
,
StructVal
]
extension
(scope:
Scope
)
def
asSBlock
:
Either
[
AstException
,
SBlock
]
def
asSMethod
:
Either
[
AstException
,
SMethod
]
def
asSStruct
:
Either
[
AstException
,
SStruct
]
def
scopeKind
:
String
extension
(sym:
Symbol
)
def
asSMethod
:
Either
[
AstException
,
SMethod
]
def
asSStruct
:
Either
[
AstException
,
SStruct
]
def
asSVar
:
Either
[
AstException
,
SVar
]
def
asType
:
Either
[
AstException
,
Symbol
&
Type
]
def
symbolKind
:
String
extension
(t:
Type
)
def
asSStruct
:
Either
[
AstException
,
SStruct
]
def
declType
:
Type
Returns either a Type of the expression inside of DeclType OR a Type itself
Returns either a Type of the expression inside of DeclType OR a Type itself