module Noir::ScalaCalleeExtractor

Extended Modules

Defined in:

miniparsers/scala_callee_extractor.cr

Constant Summary

BARE_CALL_REGEX = /(?<![.\w])([A-Za-z_]\w*)\s*(?:\(|\{)/
RECEIVER_CALL_REGEX = /([A-Za-z_]\w*(?:\s*\.\s*[A-Za-z_]\w*)+)\s*(?:\(|\{)/
RESERVED = Set {"abstract", "case", "catch", "class", "def", "do", "else", "extends", "false", "final", "finally", "for", "forSome", "if", "implicit", "import", "lazy", "match", "new", "null", "object", "override", "package", "private", "protected", "return", "sealed", "super", "this", "throw", "trait", "try", "true", "type", "val", "var", "while", "with", "yield", "println", "Some", "None", "Nil"}

Instance Method Summary

Instance Method Detail

def attach_to(endpoint : Endpoint, callees : Array(Entry)) #

[View source]
def callees_for_body(body : String, file_path : String, start_line : Int32) : Array(Entry) #

[View source]
def strip_comment(line : String, block_comment_depth : Int32 = 0, in_multiline_string : Bool = false) : String #

[View source]
def strip_comment_preserving_strings(line : String) : String #

[View source]
def strip_non_code_with_state(line : String, block_comment_depth : Int32, in_multiline_string : Bool, preserve_strings : Bool = false) : Tuple(String, Int32, Bool) #

[View source]