| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cubix.Analysis.Call.Trivial
Synopsis
- data NodeIdx = NodeIdx FilePath Label
- type TrivialCallAnalysisConstraints (fs :: Signature) = (FunctionCall :-<: fs, Ident :-<: fs, InjF fs IdentL FunctionExpL, All HTraversable fs, DynCase (TermLab fs) FunctionCallL)
- class CallAnalysis (fs :: Signature) where
- callAnalysis :: Project fs -> Map FunctionId [NodeIdx]
- type TrivialFunctionAnalysisConstraints (fs :: Signature) = (FunctionDef :-<: fs, Ident :-<: fs, All HTraversable fs, DynCase (TermLab fs) FunctionDefL)
- class FunctionAnalysis (fs :: Signature) where
- functionAnalysis :: Project fs -> Map FunctionId [NodeIdx]
Documentation
A NodeIdx represents a location in a Project
type TrivialCallAnalysisConstraints (fs :: Signature) = (FunctionCall :-<: fs, Ident :-<: fs, InjF fs IdentL FunctionExpL, All HTraversable fs, DynCase (TermLab fs) FunctionCallL) Source #
class CallAnalysis (fs :: Signature) where Source #
Methods
callAnalysis :: Project fs -> Map FunctionId [NodeIdx] Source #
Returns a map from function name to all locations in the code where a function by that name is called
Instances
| (TCAC fs, All HFoldable fs) => CallAnalysis fs Source # | |
Defined in Cubix.Analysis.Call.Trivial | |
type TrivialFunctionAnalysisConstraints (fs :: Signature) = (FunctionDef :-<: fs, Ident :-<: fs, All HTraversable fs, DynCase (TermLab fs) FunctionDefL) Source #
class FunctionAnalysis (fs :: Signature) where Source #
Methods
functionAnalysis :: Project fs -> Map FunctionId [NodeIdx] Source #
Returns a map from function name to all locations in the code where a function by that name is defined
Instances
| (TFAC fs, All HFunctor fs, All HFoldable fs) => FunctionAnalysis fs Source # | |
Defined in Cubix.Analysis.Call.Trivial | |