module
Noir::FsharpCalleeExtractor
Extended Modules
Defined in:
miniparsers/fsharp_callee_extractor.crConstant Summary
-
ASSIGN_CALL_REGEX =
/\b(?:let!?|use!?)\s+[A-Za-z_][A-Za-z0-9_']*(?:\s*:[^=]+)?\s*=\s*([A-Za-z_][A-Za-z0-9_']*(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)*)(?:\s*<[^>\n]*>)?\s*(?:\(|(?=\s+(?:[A-Za-z_(@"]|\d)))/ -
CHAIN_CALL_REGEX =
/>=>\s*([A-Za-z_][A-Za-z0-9_']*(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)*)/ -
INITIAL_STATE =
{block_comment_depth: 0, triple_string: false} -
PAREN_CALL_REGEX =
/[(,]\s*([A-Za-z_][A-Za-z0-9_']*)\s+(?=[A-Za-z_(@"])/ -
PIPE_CALL_REGEX =
/\|>\s*([A-Za-z_][A-Za-z0-9_']*(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)*)/ -
QUALIFIED_CALL_REGEX =
/(?<![A-Za-z0-9_'])((?:[A-Za-z_][A-Za-z0-9_']*)(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)+)(?:\s*<[^>\n]*>)?\s*(?:\(|(?=\s+(?:[A-Za-z_(@"]|\d)))/ -
RESERVED =
Set {"abstract", "and", "as", "assert", "base", "begin", "class", "default", "delegate", "do", "done", "downcast", "downto", "elif", "else", "end", "exception", "extern", "false", "finally", "for", "fun", "function", "global", "if", "in", "inherit", "inline", "interface", "internal", "lazy", "let", "let!", "match", "member", "module", "mutable", "namespace", "new", "not", "null", "of", "open", "or", "override", "private", "public", "rec", "return", "return!", "select", "static", "struct", "then", "to", "true", "try", "type", "upcast", "use", "use!", "val", "void", "when", "while", "with", "yield", "yield!", "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "choose", "route", "routeCi", "routef", "routex", "subRoute", "subRouteCi", "subRoutef", "task", "async", "next", "ctx", "context"} -
RETURN_CALL_REGEX =
/\breturn!?\s+([A-Za-z_][A-Za-z0-9_']*(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)*)(?:\s*<[^>\n]*>)?\s*(?:\(|(?=\s+(?:[A-Za-z_(@"]|\d)))/ -
STATEMENT_CALL_REGEX =
/^\s*([A-Za-z_][A-Za-z0-9_']*(?:\s*\.\s*[A-Za-z_][A-Za-z0-9_']+)*)\b(?:\s*<[^>\n]*>)?\s*(?:$|(?=[A-Za-z_(@"]))/
Instance Method Summary
- #attach_to(endpoint : Endpoint, callees : Array(Entry))
- #callees_for_body(body : String, file_path : String, start_line : Int32) : Array(Entry)