Documentation ¶
Overview ¶
Package computationalgraph
I. Introduction ¶
Package computationalgraph is used to traverse an AST and build a graph of the simplified computation of the AST.
II. Usage ¶
Graphs yielded by this package can then be traversed to check e.g. that a di.Value is not used before being set.
III. Notes ¶
We can recursively traverse an AST to build the graph
How do we mark/recognize that a func argument has a reference to a di.Value
What if a di.Value is an attribute of a struct? We should be able to mark the struct as a holder of a reference to a di.Value
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct{}
type AssociatedFuncCall ¶
type Struct ¶
type Struct struct { Ident astutil.Ident Attr []StructAttr }
type StructAttr ¶
type StructAttr struct { }
type SwitchBranch ¶
Click to show internal directories.
Click to hide internal directories.