Module refinery.lib.scripts.vba.model
Expand source code Browse git
from __future__ import annotations
import enum
from dataclasses import dataclass, field
from refinery.lib.scripts import Expression, Node, Script, Statement
class VbaLoopConditionType(enum.Enum):
WHILE = 'While'
UNTIL = 'Until'
class VbaLoopConditionPosition(enum.Enum):
PRE = 'pre'
POST = 'post'
class VbaScopeModifier(enum.Enum):
NONE = ''
PUBLIC = 'Public'
PRIVATE = 'Private'
FRIEND = 'Friend'
DIM = 'Dim'
GLOBAL = 'Global'
STATIC = 'Static'
class VbaPropertyKind(enum.Enum):
GET = 'Get'
LET = 'Let'
SET = 'Set'
class VbaExitKind(enum.Enum):
SUB = 'Sub'
FUNCTION = 'Function'
DO = 'Do'
FOR = 'For'
PROPERTY = 'Property'
class VbaOnErrorAction(enum.Enum):
NONE = ''
GOTO = 'GoTo'
RESUME = 'Resume'
RESUME_NEXT = 'ResumeNext'
class VbaOnBranchKind(enum.Enum):
GOTO = 'GoTo'
GOSUB = 'GoSub'
class VbaParameterPassing(enum.Enum):
NONE = ''
BY_VAL = 'ByVal'
BY_REF = 'ByRef'
@dataclass(repr=False, eq=False)
class VbaErrorNode(Expression, Statement):
text: str = ''
message: str = ''
@dataclass(repr=False, eq=False)
class VbaIdentifier(Expression):
name: str = ''
@dataclass(repr=False, eq=False)
class VbaMeExpression(Expression):
pass
@dataclass(repr=False, eq=False)
class VbaIntegerLiteral(Expression):
value: int = 0
raw: str = '0'
@dataclass(repr=False, eq=False)
class VbaFloatLiteral(Expression):
value: float = 0.0
raw: str = '0'
@dataclass(repr=False, eq=False)
class VbaStringLiteral(Expression):
value: str = ''
raw: str = '""'
@dataclass(repr=False, eq=False)
class VbaDateLiteral(Expression):
raw: str = '##'
@dataclass(repr=False, eq=False)
class VbaBooleanLiteral(Expression):
value: bool = False
@dataclass(repr=False, eq=False)
class VbaNothingLiteral(Expression):
pass
@dataclass(repr=False, eq=False)
class VbaNullLiteral(Expression):
pass
@dataclass(repr=False, eq=False)
class VbaEmptyLiteral(Expression):
value: None = None
@dataclass(repr=False, eq=False)
class VbaBinaryExpression(Expression):
left: Expression | None = None
operator: str = ''
right: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaUnaryExpression(Expression):
operator: str = ''
operand: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaNamedArgument(Expression):
name: str = ''
expression: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaByValArgument(Expression):
expression: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaCallExpression(Expression):
callee: Expression | None = None
arguments: list[Expression | None] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaMemberAccess(Expression):
object: Expression | None = None
member: str = ''
@dataclass(repr=False, eq=False)
class VbaBangAccess(Expression):
object: Expression | None = None
member: str = ''
@dataclass(repr=False, eq=False)
class VbaNewExpression(Expression):
class_name: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaTypeOfIsExpression(Expression):
operand: Expression | None = None
type_name: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaParenExpression(Expression):
expression: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaRangeExpression(Expression):
start: Expression | None = None
end: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaModule(Script):
pass
@dataclass(repr=False, eq=False)
class VbaOptionStatement(Statement):
keyword: str = ''
value: str = ''
@dataclass(repr=False, eq=False)
class VbaDeclareStatement(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
name: str = ''
lib: str = ''
alias: str = ''
is_function: bool = False
params: list[VbaParameter] = field(default_factory=list)
return_type: str = ''
@dataclass(repr=False, eq=False)
class VbaTypeDefinition(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
name: str = ''
members: list[VbaVariableDeclarator] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaEnumDefinition(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
name: str = ''
members: list[VbaEnumMember] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaEnumMember(Node):
name: str = ''
value: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaConstDeclarator(Node):
name: str = ''
type_name: str = ''
value: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaConstDeclaration(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
declarators: list[VbaConstDeclarator] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaVariableDeclarator(Node):
name: str = ''
type_name: str = ''
is_array: bool = False
bounds: list[Expression] = field(default_factory=list)
is_new: bool = False
with_events: bool = False
@dataclass(repr=False, eq=False)
class VbaVariableDeclaration(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
declarators: list[VbaVariableDeclarator] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaEventDeclaration(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
name: str = ''
params: list[VbaParameter] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaParameter(Node):
name: str = ''
passing: VbaParameterPassing = VbaParameterPassing.NONE
type_name: str = ''
is_optional: bool = False
is_paramarray: bool = False
default: Expression | None = None
is_array: bool = False
@dataclass(repr=False, eq=False)
class VbaProcedureDeclaration(Statement):
scope: VbaScopeModifier = VbaScopeModifier.NONE
name: str = ''
params: list[VbaParameter] = field(default_factory=list)
body: list[Statement] = field(default_factory=list)
is_static: bool = False
@dataclass(repr=False, eq=False)
class VbaSubDeclaration(VbaProcedureDeclaration):
pass
@dataclass(repr=False, eq=False)
class VbaFunctionDeclaration(VbaProcedureDeclaration):
return_type: str = ''
@dataclass(repr=False, eq=False)
class VbaPropertyDeclaration(VbaProcedureDeclaration):
kind: VbaPropertyKind = VbaPropertyKind.GET
return_type: str = ''
@dataclass(repr=False, eq=False)
class VbaExpressionStatement(Statement):
expression: Expression | None = None
arguments: list[Expression | None] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaCallStatement(Statement):
callee: Expression | None = None
arguments: list[Expression | None] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaLetStatement(Statement):
target: Expression | None = None
value: Expression | None = None
explicit: bool = False
keyword: str = ''
@dataclass(repr=False, eq=False)
class VbaSetStatement(Statement):
target: Expression | None = None
value: Expression | None = None
@dataclass(repr=False, eq=False)
class VbaElseIfClause(Node):
condition: Expression | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaIfStatement(Statement):
condition: Expression | None = None
body: list[Statement] = field(default_factory=list)
elseif_clauses: list[VbaElseIfClause] = field(default_factory=list)
else_body: list[Statement] = field(default_factory=list)
single_line: bool = False
@dataclass(repr=False, eq=False)
class VbaForStatement(Statement):
variable: Expression | None = None
start: Expression | None = None
end: Expression | None = None
step: Expression | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaForEachStatement(Statement):
variable: Expression | None = None
collection: Expression | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaDoLoopStatement(Statement):
condition: Expression | None = None
condition_type: VbaLoopConditionType | None = None
condition_position: VbaLoopConditionPosition | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaWhileStatement(Statement):
condition: Expression | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaCaseClause(Node):
tests: list[Expression] = field(default_factory=list)
body: list[Statement] = field(default_factory=list)
is_else: bool = False
@dataclass(repr=False, eq=False)
class VbaSelectCaseStatement(Statement):
expression: Expression | None = None
cases: list[VbaCaseClause] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaWithStatement(Statement):
object: Expression | None = None
body: list[Statement] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaGotoStatement(Statement):
label: str = ''
@dataclass(repr=False, eq=False)
class VbaGosubStatement(Statement):
label: str = ''
@dataclass(repr=False, eq=False)
class VbaOnErrorStatement(Statement):
action: VbaOnErrorAction = VbaOnErrorAction.NONE
label: str = ''
@dataclass(repr=False, eq=False)
class VbaOnBranchStatement(Statement):
expression: Expression = field(default_factory=lambda: VbaIntegerLiteral(value=0))
kind: VbaOnBranchKind = VbaOnBranchKind.GOTO
labels: list[str] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaExitStatement(Statement):
kind: VbaExitKind = VbaExitKind.SUB
@dataclass(repr=False, eq=False)
class VbaReturnStatement(Statement):
pass
@dataclass(repr=False, eq=False)
class VbaRedimStatement(Statement):
preserve: bool = False
declarators: list[VbaVariableDeclarator] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaEraseStatement(Statement):
targets: list[Expression] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaRaiseEventStatement(Statement):
name: str = ''
arguments: list[Expression] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaLabelStatement(Statement):
label: str = ''
@dataclass(repr=False, eq=False)
class VbaStopStatement(Statement):
pass
@dataclass(repr=False, eq=False)
class VbaEndStatement(Statement):
pass
@dataclass(repr=False, eq=False)
class VbaDebugPrintStatement(Statement):
method: str = 'Print'
arguments: list[Expression] = field(default_factory=list)
separators: list[str] = field(default_factory=list)
@dataclass(repr=False, eq=False)
class VbaResumeStatement(Statement):
label: str = ''
@dataclass(repr=False, eq=False)
class VbaImplementsStatement(Statement):
name: str = ''
Classes
class VbaLoopConditionType (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaLoopConditionType(enum.Enum): WHILE = 'While' UNTIL = 'Until'Ancestors
- enum.Enum
Class variables
var WHILE-
The type of the None singleton.
var UNTIL-
The type of the None singleton.
class VbaLoopConditionPosition (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaLoopConditionPosition(enum.Enum): PRE = 'pre' POST = 'post'Ancestors
- enum.Enum
Class variables
var PRE-
The type of the None singleton.
var POST-
The type of the None singleton.
class VbaScopeModifier (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaScopeModifier(enum.Enum): NONE = '' PUBLIC = 'Public' PRIVATE = 'Private' FRIEND = 'Friend' DIM = 'Dim' GLOBAL = 'Global' STATIC = 'Static'Ancestors
- enum.Enum
Class variables
var NONE-
The type of the None singleton.
var PUBLIC-
The type of the None singleton.
var PRIVATE-
The type of the None singleton.
var FRIEND-
The type of the None singleton.
var DIM-
The type of the None singleton.
var GLOBAL-
The type of the None singleton.
var STATIC-
The type of the None singleton.
class VbaPropertyKind (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaPropertyKind(enum.Enum): GET = 'Get' LET = 'Let' SET = 'Set'Ancestors
- enum.Enum
Class variables
var GET-
The type of the None singleton.
var LET-
The type of the None singleton.
var SET-
The type of the None singleton.
class VbaExitKind (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaExitKind(enum.Enum): SUB = 'Sub' FUNCTION = 'Function' DO = 'Do' FOR = 'For' PROPERTY = 'Property'Ancestors
- enum.Enum
Class variables
var SUB-
The type of the None singleton.
var FUNCTION-
The type of the None singleton.
var DO-
The type of the None singleton.
var FOR-
The type of the None singleton.
var PROPERTY-
The type of the None singleton.
class VbaOnErrorAction (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaOnErrorAction(enum.Enum): NONE = '' GOTO = 'GoTo' RESUME = 'Resume' RESUME_NEXT = 'ResumeNext'Ancestors
- enum.Enum
Class variables
var NONE-
The type of the None singleton.
var GOTO-
The type of the None singleton.
var RESUME-
The type of the None singleton.
var RESUME_NEXT-
The type of the None singleton.
class VbaOnBranchKind (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaOnBranchKind(enum.Enum): GOTO = 'GoTo' GOSUB = 'GoSub'Ancestors
- enum.Enum
Class variables
var GOTO-
The type of the None singleton.
var GOSUB-
The type of the None singleton.
class VbaParameterPassing (*args, **kwds)-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Expand source code Browse git
class VbaParameterPassing(enum.Enum): NONE = '' BY_VAL = 'ByVal' BY_REF = 'ByRef'Ancestors
- enum.Enum
Class variables
var NONE-
The type of the None singleton.
var BY_VAL-
The type of the None singleton.
var BY_REF-
The type of the None singleton.
class VbaErrorNode (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, text='', message='')-
VbaErrorNode(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , text: 'str' = '', message: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaErrorNode(Expression, Statement): text: str = '' message: str = ''Ancestors
Instance variables
var text-
The type of the None singleton.
var message-
The type of the None singleton.
Inherited members
class VbaIdentifier (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='')-
VbaIdentifier(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaIdentifier(Expression): name: str = ''Ancestors
Instance variables
var name-
The type of the None singleton.
Inherited members
class VbaMeExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaMeExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaMeExpression(Expression): passAncestors
Inherited members
class VbaIntegerLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, value=0, raw='0')-
VbaIntegerLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , value: 'int' = 0, raw: 'str' = '0') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaIntegerLiteral(Expression): value: int = 0 raw: str = '0'Ancestors
Instance variables
var value-
The type of the None singleton.
var raw-
The type of the None singleton.
Inherited members
class VbaFloatLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, value=0.0, raw='0')-
VbaFloatLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , value: 'float' = 0.0, raw: 'str' = '0') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaFloatLiteral(Expression): value: float = 0.0 raw: str = '0'Ancestors
Instance variables
var value-
The type of the None singleton.
var raw-
The type of the None singleton.
Inherited members
class VbaStringLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, value='', raw='""')-
VbaStringLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , value: 'str' = '', raw: 'str' = '""') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaStringLiteral(Expression): value: str = '' raw: str = '""'Ancestors
Instance variables
var value-
The type of the None singleton.
var raw-
The type of the None singleton.
Inherited members
class VbaDateLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, raw='##')-
VbaDateLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , raw: 'str' = '##') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaDateLiteral(Expression): raw: str = '##'Ancestors
Instance variables
var raw-
The type of the None singleton.
Inherited members
class VbaBooleanLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, value=False)-
VbaBooleanLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , value: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaBooleanLiteral(Expression): value: bool = FalseAncestors
Instance variables
var value-
The type of the None singleton.
Inherited members
class VbaNothingLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaNothingLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaNothingLiteral(Expression): passAncestors
Inherited members
class VbaNullLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaNullLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaNullLiteral(Expression): passAncestors
Inherited members
class VbaEmptyLiteral (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, value=None)-
VbaEmptyLiteral(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , value: 'None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEmptyLiteral(Expression): value: None = NoneAncestors
Instance variables
var value-
The type of the None singleton.
Inherited members
class VbaBinaryExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, left=None, operator='', right=None)-
VbaBinaryExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , left: 'Expression | None' = None, operator: 'str' = '', right: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaBinaryExpression(Expression): left: Expression | None = None operator: str = '' right: Expression | None = NoneAncestors
Instance variables
var left-
The type of the None singleton.
var operator-
The type of the None singleton.
var right-
The type of the None singleton.
Inherited members
class VbaUnaryExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, operator='', operand=None)-
VbaUnaryExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , operator: 'str' = '', operand: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaUnaryExpression(Expression): operator: str = '' operand: Expression | None = NoneAncestors
Instance variables
var operator-
The type of the None singleton.
var operand-
The type of the None singleton.
Inherited members
class VbaNamedArgument (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', expression=None)-
VbaNamedArgument(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', expression: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaNamedArgument(Expression): name: str = '' expression: Expression | None = NoneAncestors
Instance variables
var name-
The type of the None singleton.
var expression-
The type of the None singleton.
Inherited members
class VbaByValArgument (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, expression=None)-
VbaByValArgument(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , expression: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaByValArgument(Expression): expression: Expression | None = NoneAncestors
Instance variables
var expression-
The type of the None singleton.
Inherited members
class VbaCallExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, callee=None, arguments=<factory>)-
VbaCallExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , callee: 'Expression | None' = None, arguments: 'list[Expression | None]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaCallExpression(Expression): callee: Expression | None = None arguments: list[Expression | None] = field(default_factory=list)Ancestors
Instance variables
var arguments-
The type of the None singleton.
var callee-
The type of the None singleton.
Inherited members
class VbaMemberAccess (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, object=None, member='')-
VbaMemberAccess(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , object: 'Expression | None' = None, member: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaMemberAccess(Expression): object: Expression | None = None member: str = ''Ancestors
Instance variables
var object-
The type of the None singleton.
var member-
The type of the None singleton.
Inherited members
class VbaBangAccess (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, object=None, member='')-
VbaBangAccess(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , object: 'Expression | None' = None, member: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaBangAccess(Expression): object: Expression | None = None member: str = ''Ancestors
Instance variables
var object-
The type of the None singleton.
var member-
The type of the None singleton.
Inherited members
class VbaNewExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, class_name=None)-
VbaNewExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , class_name: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaNewExpression(Expression): class_name: Expression | None = NoneAncestors
Instance variables
var class_name-
The type of the None singleton.
Inherited members
class VbaTypeOfIsExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, operand=None, type_name=None)-
VbaTypeOfIsExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , operand: 'Expression | None' = None, type_name: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaTypeOfIsExpression(Expression): operand: Expression | None = None type_name: Expression | None = NoneAncestors
Instance variables
var operand-
The type of the None singleton.
var type_name-
The type of the None singleton.
Inherited members
class VbaParenExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, expression=None)-
VbaParenExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , expression: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaParenExpression(Expression): expression: Expression | None = NoneAncestors
Instance variables
var expression-
The type of the None singleton.
Inherited members
class VbaRangeExpression (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, start=None, end=None)-
VbaRangeExpression(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , start: 'Expression | None' = None, end: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaRangeExpression(Expression): start: Expression | None = None end: Expression | None = NoneAncestors
Instance variables
var start-
The type of the None singleton.
var end-
The type of the None singleton.
Inherited members
class VbaModule (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, body=<factory>)-
VbaModule(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaModule(Script): passAncestors
Inherited members
class VbaOptionStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, keyword='', value='')-
VbaOptionStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , keyword: 'str' = '', value: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaOptionStatement(Statement): keyword: str = '' value: str = ''Ancestors
Instance variables
var keyword-
The type of the None singleton.
var value-
The type of the None singleton.
Inherited members
class VbaDeclareStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', lib='', alias='', is_function=False, params=<factory>, return_type='')-
VbaDeclareStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', lib: 'str' = '', alias: 'str' = '', is_function: 'bool' = False, params: 'list[VbaParameter]' = , return_type: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaDeclareStatement(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE name: str = '' lib: str = '' alias: str = '' is_function: bool = False params: list[VbaParameter] = field(default_factory=list) return_type: str = ''Ancestors
Instance variables
var params-
The type of the None singleton.
var scope-
The type of the None singleton.
var name-
The type of the None singleton.
var lib-
The type of the None singleton.
var alias-
The type of the None singleton.
var is_function-
The type of the None singleton.
var return_type-
The type of the None singleton.
Inherited members
class VbaTypeDefinition (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', members=<factory>)-
VbaTypeDefinition(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', members: 'list[VbaVariableDeclarator]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaTypeDefinition(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE name: str = '' members: list[VbaVariableDeclarator] = field(default_factory=list)Ancestors
Instance variables
var members-
The type of the None singleton.
var scope-
The type of the None singleton.
var name-
The type of the None singleton.
Inherited members
class VbaEnumDefinition (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', members=<factory>)-
VbaEnumDefinition(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', members: 'list[VbaEnumMember]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEnumDefinition(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE name: str = '' members: list[VbaEnumMember] = field(default_factory=list)Ancestors
Instance variables
var members-
The type of the None singleton.
var scope-
The type of the None singleton.
var name-
The type of the None singleton.
Inherited members
class VbaEnumMember (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', value=None)-
VbaEnumMember(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', value: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEnumMember(Node): name: str = '' value: Expression | None = NoneAncestors
Instance variables
var name-
The type of the None singleton.
var value-
The type of the None singleton.
Inherited members
class VbaConstDeclarator (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', type_name='', value=None)-
VbaConstDeclarator(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', type_name: 'str' = '', value: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaConstDeclarator(Node): name: str = '' type_name: str = '' value: Expression | None = NoneAncestors
Instance variables
var name-
The type of the None singleton.
var type_name-
The type of the None singleton.
var value-
The type of the None singleton.
Inherited members
class VbaConstDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, declarators=<factory>)-
VbaConstDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, declarators: 'list[VbaConstDeclarator]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaConstDeclaration(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE declarators: list[VbaConstDeclarator] = field(default_factory=list)Ancestors
Instance variables
var declarators-
The type of the None singleton.
var scope-
The type of the None singleton.
Inherited members
class VbaVariableDeclarator (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', type_name='', is_array=False, bounds=<factory>, is_new=False, with_events=False)-
VbaVariableDeclarator(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', type_name: 'str' = '', is_array: 'bool' = False, bounds: 'list[Expression]' = , is_new: 'bool' = False, with_events: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaVariableDeclarator(Node): name: str = '' type_name: str = '' is_array: bool = False bounds: list[Expression] = field(default_factory=list) is_new: bool = False with_events: bool = FalseAncestors
Instance variables
var bounds-
The type of the None singleton.
var name-
The type of the None singleton.
var type_name-
The type of the None singleton.
var is_array-
The type of the None singleton.
var is_new-
The type of the None singleton.
var with_events-
The type of the None singleton.
Inherited members
class VbaVariableDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, declarators=<factory>)-
VbaVariableDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, declarators: 'list[VbaVariableDeclarator]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaVariableDeclaration(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE declarators: list[VbaVariableDeclarator] = field(default_factory=list)Ancestors
Instance variables
var declarators-
The type of the None singleton.
var scope-
The type of the None singleton.
Inherited members
class VbaEventDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', params=<factory>)-
VbaEventDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', params: 'list[VbaParameter]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEventDeclaration(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE name: str = '' params: list[VbaParameter] = field(default_factory=list)Ancestors
Instance variables
var params-
The type of the None singleton.
var scope-
The type of the None singleton.
var name-
The type of the None singleton.
Inherited members
class VbaParameter (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', passing=VbaParameterPassing.NONE, type_name='', is_optional=False, is_paramarray=False, default=None, is_array=False)-
VbaParameter(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', passing: 'VbaParameterPassing' = <VbaParameterPassing.NONE: ''>, type_name: 'str' = '', is_optional: 'bool' = False, is_paramarray: 'bool' = False, default: 'Expression | None' = None, is_array: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaParameter(Node): name: str = '' passing: VbaParameterPassing = VbaParameterPassing.NONE type_name: str = '' is_optional: bool = False is_paramarray: bool = False default: Expression | None = None is_array: bool = FalseAncestors
Instance variables
var name-
The type of the None singleton.
var passing-
The type of the None singleton.
var type_name-
The type of the None singleton.
var is_optional-
The type of the None singleton.
var is_paramarray-
The type of the None singleton.
var default-
The type of the None singleton.
var is_array-
The type of the None singleton.
Inherited members
class VbaProcedureDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', params=<factory>, body=<factory>, is_static=False)-
VbaProcedureDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', params: 'list[VbaParameter]' = , body: 'list[Statement]' = , is_static: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaProcedureDeclaration(Statement): scope: VbaScopeModifier = VbaScopeModifier.NONE name: str = '' params: list[VbaParameter] = field(default_factory=list) body: list[Statement] = field(default_factory=list) is_static: bool = FalseAncestors
Subclasses
Instance variables
var params-
The type of the None singleton.
var body-
The type of the None singleton.
var scope-
The type of the None singleton.
var name-
The type of the None singleton.
var is_static-
The type of the None singleton.
Inherited members
class VbaSubDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', params=<factory>, body=<factory>, is_static=False)-
VbaSubDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', params: 'list[VbaParameter]' = , body: 'list[Statement]' = , is_static: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaSubDeclaration(VbaProcedureDeclaration): passAncestors
Inherited members
class VbaFunctionDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', params=<factory>, body=<factory>, is_static=False, return_type='')-
VbaFunctionDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', params: 'list[VbaParameter]' = , body: 'list[Statement]' = , is_static: 'bool' = False, return_type: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaFunctionDeclaration(VbaProcedureDeclaration): return_type: str = ''Ancestors
Instance variables
var return_type-
The type of the None singleton.
Inherited members
class VbaPropertyDeclaration (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, scope=VbaScopeModifier.NONE, name='', params=<factory>, body=<factory>, is_static=False, kind=VbaPropertyKind.GET, return_type='')-
VbaPropertyDeclaration(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , scope: 'VbaScopeModifier' = <VbaScopeModifier.NONE: ''>, name: 'str' = '', params: 'list[VbaParameter]' = , body: 'list[Statement]' = , is_static: 'bool' = False, kind: 'VbaPropertyKind' = <VbaPropertyKind.GET: 'Get'>, return_type: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaPropertyDeclaration(VbaProcedureDeclaration): kind: VbaPropertyKind = VbaPropertyKind.GET return_type: str = ''Ancestors
Instance variables
var kind-
The type of the None singleton.
var return_type-
The type of the None singleton.
Inherited members
class VbaExpressionStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, expression=None, arguments=<factory>)-
VbaExpressionStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , expression: 'Expression | None' = None, arguments: 'list[Expression | None]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaExpressionStatement(Statement): expression: Expression | None = None arguments: list[Expression | None] = field(default_factory=list)Ancestors
Instance variables
var arguments-
The type of the None singleton.
var expression-
The type of the None singleton.
Inherited members
class VbaCallStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, callee=None, arguments=<factory>)-
VbaCallStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , callee: 'Expression | None' = None, arguments: 'list[Expression | None]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaCallStatement(Statement): callee: Expression | None = None arguments: list[Expression | None] = field(default_factory=list)Ancestors
Instance variables
var arguments-
The type of the None singleton.
var callee-
The type of the None singleton.
Inherited members
class VbaLetStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, target=None, value=None, explicit=False, keyword='')-
VbaLetStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , target: 'Expression | None' = None, value: 'Expression | None' = None, explicit: 'bool' = False, keyword: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaLetStatement(Statement): target: Expression | None = None value: Expression | None = None explicit: bool = False keyword: str = ''Ancestors
Instance variables
var target-
The type of the None singleton.
var value-
The type of the None singleton.
var explicit-
The type of the None singleton.
var keyword-
The type of the None singleton.
Inherited members
class VbaSetStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, target=None, value=None)-
VbaSetStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , target: 'Expression | None' = None, value: 'Expression | None' = None) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaSetStatement(Statement): target: Expression | None = None value: Expression | None = NoneAncestors
Instance variables
var target-
The type of the None singleton.
var value-
The type of the None singleton.
Inherited members
class VbaElseIfClause (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, condition=None, body=<factory>)-
VbaElseIfClause(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , condition: 'Expression | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaElseIfClause(Node): condition: Expression | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var condition-
The type of the None singleton.
Inherited members
class VbaIfStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, condition=None, body=<factory>, elseif_clauses=<factory>, else_body=<factory>, single_line=False)-
VbaIfStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , condition: 'Expression | None' = None, body: 'list[Statement]' = , elseif_clauses: 'list[VbaElseIfClause]' = , else_body: 'list[Statement]' = , single_line: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaIfStatement(Statement): condition: Expression | None = None body: list[Statement] = field(default_factory=list) elseif_clauses: list[VbaElseIfClause] = field(default_factory=list) else_body: list[Statement] = field(default_factory=list) single_line: bool = FalseAncestors
Instance variables
var body-
The type of the None singleton.
var elseif_clauses-
The type of the None singleton.
var else_body-
The type of the None singleton.
var condition-
The type of the None singleton.
var single_line-
The type of the None singleton.
Inherited members
class VbaForStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, variable=None, start=None, end=None, step=None, body=<factory>)-
VbaForStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , variable: 'Expression | None' = None, start: 'Expression | None' = None, end: 'Expression | None' = None, step: 'Expression | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaForStatement(Statement): variable: Expression | None = None start: Expression | None = None end: Expression | None = None step: Expression | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var variable-
The type of the None singleton.
var start-
The type of the None singleton.
var end-
The type of the None singleton.
var step-
The type of the None singleton.
Inherited members
class VbaForEachStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, variable=None, collection=None, body=<factory>)-
VbaForEachStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , variable: 'Expression | None' = None, collection: 'Expression | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaForEachStatement(Statement): variable: Expression | None = None collection: Expression | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var variable-
The type of the None singleton.
var collection-
The type of the None singleton.
Inherited members
class VbaDoLoopStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, condition=None, condition_type=None, condition_position=None, body=<factory>)-
VbaDoLoopStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , condition: 'Expression | None' = None, condition_type: 'VbaLoopConditionType | None' = None, condition_position: 'VbaLoopConditionPosition | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaDoLoopStatement(Statement): condition: Expression | None = None condition_type: VbaLoopConditionType | None = None condition_position: VbaLoopConditionPosition | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var condition-
The type of the None singleton.
var condition_type-
The type of the None singleton.
var condition_position-
The type of the None singleton.
Inherited members
class VbaWhileStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, condition=None, body=<factory>)-
VbaWhileStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , condition: 'Expression | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaWhileStatement(Statement): condition: Expression | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var condition-
The type of the None singleton.
Inherited members
class VbaCaseClause (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, tests=<factory>, body=<factory>, is_else=False)-
VbaCaseClause(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , tests: 'list[Expression]' = , body: 'list[Statement]' = , is_else: 'bool' = False) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaCaseClause(Node): tests: list[Expression] = field(default_factory=list) body: list[Statement] = field(default_factory=list) is_else: bool = FalseAncestors
Instance variables
var tests-
The type of the None singleton.
var body-
The type of the None singleton.
var is_else-
The type of the None singleton.
Inherited members
class VbaSelectCaseStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, expression=None, cases=<factory>)-
VbaSelectCaseStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , expression: 'Expression | None' = None, cases: 'list[VbaCaseClause]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaSelectCaseStatement(Statement): expression: Expression | None = None cases: list[VbaCaseClause] = field(default_factory=list)Ancestors
Instance variables
var cases-
The type of the None singleton.
var expression-
The type of the None singleton.
Inherited members
class VbaWithStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, object=None, body=<factory>)-
VbaWithStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , object: 'Expression | None' = None, body: 'list[Statement]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaWithStatement(Statement): object: Expression | None = None body: list[Statement] = field(default_factory=list)Ancestors
Instance variables
var body-
The type of the None singleton.
var object-
The type of the None singleton.
Inherited members
class VbaGotoStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, label='')-
VbaGotoStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , label: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaGotoStatement(Statement): label: str = ''Ancestors
Instance variables
var label-
The type of the None singleton.
Inherited members
class VbaGosubStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, label='')-
VbaGosubStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , label: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaGosubStatement(Statement): label: str = ''Ancestors
Instance variables
var label-
The type of the None singleton.
Inherited members
class VbaOnErrorStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, action=VbaOnErrorAction.NONE, label='')-
VbaOnErrorStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , action: 'VbaOnErrorAction' = <VbaOnErrorAction.NONE: ''>, label: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaOnErrorStatement(Statement): action: VbaOnErrorAction = VbaOnErrorAction.NONE label: str = ''Ancestors
Instance variables
var action-
The type of the None singleton.
var label-
The type of the None singleton.
Inherited members
class VbaOnBranchStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, expression=<factory>, kind=VbaOnBranchKind.GOTO, labels=<factory>)-
VbaOnBranchStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , expression: 'Expression' = , kind: 'VbaOnBranchKind' = <VbaOnBranchKind.GOTO: 'GoTo'>, labels: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaOnBranchStatement(Statement): expression: Expression = field(default_factory=lambda: VbaIntegerLiteral(value=0)) kind: VbaOnBranchKind = VbaOnBranchKind.GOTO labels: list[str] = field(default_factory=list)Ancestors
Instance variables
var expression-
The type of the None singleton.
var labels-
The type of the None singleton.
var kind-
The type of the None singleton.
Inherited members
class VbaExitStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, kind=VbaExitKind.SUB)-
VbaExitStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , kind: 'VbaExitKind' = <VbaExitKind.SUB: 'Sub'>) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaExitStatement(Statement): kind: VbaExitKind = VbaExitKind.SUBAncestors
Instance variables
var kind-
The type of the None singleton.
Inherited members
class VbaReturnStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaReturnStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaReturnStatement(Statement): passAncestors
Inherited members
class VbaRedimStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, preserve=False, declarators=<factory>)-
VbaRedimStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , preserve: 'bool' = False, declarators: 'list[VbaVariableDeclarator]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaRedimStatement(Statement): preserve: bool = False declarators: list[VbaVariableDeclarator] = field(default_factory=list)Ancestors
Instance variables
var declarators-
The type of the None singleton.
var preserve-
The type of the None singleton.
Inherited members
class VbaEraseStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, targets=<factory>)-
VbaEraseStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , targets: 'list[Expression]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEraseStatement(Statement): targets: list[Expression] = field(default_factory=list)Ancestors
Instance variables
var targets-
The type of the None singleton.
Inherited members
class VbaRaiseEventStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='', arguments=<factory>)-
VbaRaiseEventStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '', arguments: 'list[Expression]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaRaiseEventStatement(Statement): name: str = '' arguments: list[Expression] = field(default_factory=list)Ancestors
Instance variables
var arguments-
The type of the None singleton.
var name-
The type of the None singleton.
Inherited members
class VbaLabelStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, label='')-
VbaLabelStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , label: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaLabelStatement(Statement): label: str = ''Ancestors
Instance variables
var label-
The type of the None singleton.
Inherited members
class VbaStopStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaStopStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaStopStatement(Statement): passAncestors
Inherited members
class VbaEndStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>)-
VbaEndStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaEndStatement(Statement): passAncestors
Inherited members
class VbaDebugPrintStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, method='Print', arguments=<factory>, separators=<factory>)-
VbaDebugPrintStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , method: 'str' = 'Print', arguments: 'list[Expression]' = , separators: 'list[str]' = ) Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaDebugPrintStatement(Statement): method: str = 'Print' arguments: list[Expression] = field(default_factory=list) separators: list[str] = field(default_factory=list)Ancestors
Instance variables
var arguments-
The type of the None singleton.
var separators-
The type of the None singleton.
var method-
The type of the None singleton.
Inherited members
class VbaResumeStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, label='')-
VbaResumeStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , label: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaResumeStatement(Statement): label: str = ''Ancestors
Instance variables
var label-
The type of the None singleton.
Inherited members
class VbaImplementsStatement (offset=-1, parent=None, leading_comments=<factory>, trailing_comments=<factory>, name='')-
VbaImplementsStatement(offset: 'int' = -1, parent: 'Node | None' = None, leading_comments: 'list[str]' =
, trailing_comments: 'list[str]' = , name: 'str' = '') Expand source code Browse git
@dataclass(repr=False, eq=False) class VbaImplementsStatement(Statement): name: str = ''Ancestors
Instance variables
var name-
The type of the None singleton.
Inherited members