class
Analyzer::Cpp::Crow
- Analyzer::Cpp::Crow
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/cpp/crow.crConstant Summary
-
BODY_ACCESS =
/\b(req|request)\s*\.\s*body\b/ -
BP_ROUTE_REGEX =
/CROW_BP_ROUTE\s*\(\s*[A-Za-z_][A-Za-z0-9_]*\s*,\s*"([^"]*)"\s*\)/ -
CROW_BP_ROUTE(bp, "/path") — blueprint-scoped route registration.
-
CPP_EXTENSIONS =
[".cpp", ".cc", ".cxx", ".h", ".hpp", ".hxx"] -
CROW_METHOD_TOKEN =
/CROW_HTTP_METHOD_([A-Za-z]+)/ -
HEADER_VALUE =
/get_header_value\s*\(\s*"([^"]+)"/ -
HTTP_METHOD_TOKEN =
/(?:crow::)?HTTPMethod::([A-Za-z]+)/ -
METHOD_TOKEN =
/"([A-Za-z]+)"_method/ -
METHODS_REGEX =
/\.methods\s*\(([^)]*)\)/ -
.methods("POST"_method, "GET"_method) clause.
-
PATH_PARAM_REGEX =
/<([^<>:]+)(?::([^<>]+))?>/ -
Path placeholder:
, , , , — and the non-standard but occasionally seen type:name form. -
ROUTE_REGEX =
/CROW_ROUTE\s*\(\s*[A-Za-z_][A-Za-z0-9_]*\s*,\s*"([^"]*)"\s*\)/ -
CROW_ROUTE(app, "/path") — the app identifier and route literal.
-
URL_PARAM_GET =
/url_params\s*\.\s*get(?:\s*<[^>]+>)?\s*\(\s*"([^"]+)"/
Instance Method Summary
Instance methods inherited from class Analyzer
analyze
analyze,
base_path : String
base_path,
base_paths : Array(String)
base_paths,
callees_needed? : Bool
callees_needed?,
logger : NoirLogger
logger,
parallel_analyze(channel : Channel(String), &block : String -> Nil)
parallel_analyze,
read_file_content(path : String) : String
read_file_content,
result : Array(Endpoint)
result,
url : String
url
Constructor methods inherited from class Analyzer
new(options : Hash(String, YAML::Any))
new
Macros inherited from class Analyzer
define_getter_methods(names)
define_getter_methods
Instance methods inherited from module FileHelper
all_files : Array(String)
all_files,
get_files_by_extension(extension : String) : Array(String)
get_files_by_extension,
get_files_by_prefix(prefix : String) : Array(String)
get_files_by_prefix,
get_files_by_prefix_and_extension(prefix : String, extension : String) : Array(String)
get_files_by_prefix_and_extension,
get_public_dir_files(base_path : String, folder : String) : Array(String)
get_public_dir_files,
get_public_files(base_path : String, anchors : Array(String) = ["shard.yml", "Gemfile"]) : Array(String)
get_public_files,
populate_channel_with_files(channel : Channel(String))
populate_channel_with_files,
populate_channel_with_filtered_files(channel : Channel(String), extension : String)populate_channel_with_filtered_files(channel : Channel(String), extensions : Array(String)) populate_channel_with_filtered_files