pygerber.nodes.math.parenthesis module contains definition of Parenthesis
class.
Parenthesis
Bases: Expression
Represents math expression expression.
Source code in src/pygerber/gerberx3/ast/nodes/math/parenthesis.py
| class Parenthesis(Expression):
"""Represents math expression expression."""
inner: Expression
def visit(self, visitor: AstVisitor) -> Parenthesis:
"""Handle visitor call."""
return visitor.on_parenthesis(self)
def get_visitor_callback_function(
self, visitor: AstVisitor
) -> Callable[[Self], Parenthesis]:
"""Get callback function for the node."""
return visitor.on_parenthesis
|
visit
visit(visitor: AstVisitor) -> Parenthesis
Handle visitor call.
Source code in src/pygerber/gerberx3/ast/nodes/math/parenthesis.py
| def visit(self, visitor: AstVisitor) -> Parenthesis:
"""Handle visitor call."""
return visitor.on_parenthesis(self)
|
get_visitor_callback_function
get_visitor_callback_function(
visitor: AstVisitor,
) -> Callable[[Self], Parenthesis]
Get callback function for the node.
Source code in src/pygerber/gerberx3/ast/nodes/math/parenthesis.py
| def get_visitor_callback_function(
self, visitor: AstVisitor
) -> Callable[[Self], Parenthesis]:
"""Get callback function for the node."""
return visitor.on_parenthesis
|