module
Noir::HaskellCalleeExtractor
Extended Modules
Defined in:
miniparsers/haskell_callee_extractor.crConstant Summary
-
BIND_CALL_REGEX =
/(?:<-|=)\s*([a-z_][A-Za-z0-9_']*)\b(?=\s|$|\()/ -
BRANCH_CALL_REGEX =
/(?:->|\bthen\b|\belse\b)\s*([a-z_][A-Za-z0-9_']*)\b(?=\s|$|\()/ -
DOLLAR_CALL_REGEX =
/\$\s*([a-z_][A-Za-z0-9_']*)\b(?=\s|$|\()/ -
PAREN_CALL_REGEX =
/[(,]\s*([a-z_][A-Za-z0-9_']*)\b(?=\s|$|\()/ -
QUALIFIED_CALL_REGEX =
/(?<![A-Za-z0-9_'.])((?:[A-Z][A-Za-z0-9_']*\.)+[a-z_][A-Za-z0-9_']*)\b/ -
RESERVED =
Set {"as", "case", "class", "data", "default", "deriving", "do", "else", "family", "forall", "foreign", "hiding", "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", "module", "newtype", "of", "qualified", "then", "type", "where", "return", "pure", "fmap", "map", "filter", "foldl", "foldr", "id", "const", "show", "read", "print", "putStrLn", "length", "null", "not", "and", "or", "maybe", "either", "fst", "snd"} -
STATEMENT_CALL_REGEX =
/^\s*([a-z_][A-Za-z0-9_']*)\b(?=\s|$|\()/
Instance Method Summary
- #attach_to(endpoint : Endpoint, callees : Array(Entry))
- #callees_for_body(body : String, file_path : String, start_line : Int32) : Array(Entry)
- #function_bodies(content : String, file_path : String) : Array(FunctionBody)