m2isar.metamodel.utils.function_throws
Tranformation functions to determine whether a function throws an exception.
Classes
Visitor that determines whether behavior expression trees can throw exceptions. |
Functions
|
Cast unknown throws values into FunctionThrows for robust visitor dispatch. |
Module Contents
- class FunctionThrowsVisitor[source]
Bases:
m2isar.metamodel.utils.ExprVisitor.ExprVisitor
Visitor that determines whether behavior expression trees can throw exceptions.
- abstract generate(expr: m2isar.metamodel.behav.BaseNode, context=None)[source]
- _(expr: m2isar.metamodel.behav.Operation, context)[source]
- cast_to_throws(throws: Any) m2isar.metamodel.arch.FunctionThrows[source]
Cast unknown throws values into FunctionThrows for robust visitor dispatch.