module Noir::CSharpCalleeExtractor

Extended Modules

Defined in:

miniparsers/csharp_callee_extractor.cr

Constant Summary

CALL_REGEX = /((?:[A-Za-z_][\w]*)(?:\s*\.\s*[A-Za-z_][\w]*)*)\s*(?:<[^>\n]+>)?\s*\(/
RESERVED = Set {"as", "await", "base", "case", "catch", "checked", "default", "delegate", "do", "else", "event", "explicit", "finally", "fixed", "for", "foreach", "if", "implicit", "is", "lock", "nameof", "new", "operator", "return", "sizeof", "switch", "this", "throw", "typeof", "unchecked", "unsafe", "using", "while"}
ROUTE_BUILDER_METHODS = Set {"Map", "MapGet", "MapPost", "MapPut", "MapDelete", "MapPatch", "MapHead", "MapOptions", "MapMethods"}

Instance Method Summary

Instance Method Detail

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

[View source]
def callees_for_block(block : String, file_path : String, start_line : Int32, *, skip_first_line : Bool = false) : Array(Entry) #

[View source]