This page lists the names of initial selectors, selectors and properties available in the semantic query language along with their possible abbreviations and synonyms. For examples of usage, see [SemanticQuery/Examples this page]. Every selector returns entites of any of the following types. See the linked pages for a detailed description of the selectors and properties of various entites. * [SemanticQuery/FileEntity File] * [SemanticQuery/FunctionEntity Function] * [SemanticQuery/FunctionClauseEntity Function clause] * [SemanticQuery/ExpressionEntity Expression] * [SemanticQuery/VariableEntity Variable] * [SemanticQuery/RecordEntity Record] * [SemanticQuery/RecordFieldEntity Record field] * [SemanticQuery/MacroEntity Macro] == Cheat sheet of query componens |||| '''Initial selectors''' || ||''Name'' ||''Synonyms'' || ||{{{files}}} || {{{-}}} || ||{{{@file}}} || {{{-}}} || ||{{{modules}}} || {{{mods}}} || ||{{{@module}}} || {{{@mod}}} || ||{{{@clause}}} || {{{-}}} || ||{{{@function}}} || {{{@fun}}} || ||{{{@definition}}} || {{{@def}}} || ||{{{@expression}}} || {{{@expr}}} || ||{{{@variable}}} || {{{@var}}} || ||{{{@record}}} || {{{@rec}}} || ||{{{@recfield}}} || {{{@field}}} || ||{{{@macro}}} || {{{-}}} || \\ |||||||| [wiki:SemanticQuery/FileEntity File entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{function}}} || {{{functions, fun, funs}}} || {{{module}}} || {{{is_module, mod, is_mod}}} || ||{{{record}}} || {{{records, rec, recs}}} || {{{header}}} || {{{is_header}}} || ||{{{macro}}} || {{{macros}}} || {{{name}}} || {{{-}}} || ||{{{includes}}} || {{{-}}} || {{{directory}}} || {{{dir}}} || ||{{{included_by}}} || {{{-}}} || {{{path}}} || {{{-}}} || ||{{{imports}}} || {{{-}}} || || || ||{{{exports}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/FunctionEntity Function entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{exported}}} || {{{-}}} || ||{{{calls}}} || {{{-}}} || {{{name}}} || {{{-}}} || ||{{{called_by}}} || {{{-}}} || {{{arity}}} || {{{-}}} || ||{{{arguments}}} || {{{args}}} || {{{bif}}} || {{{-}}} || ||{{{body}}} || {{{-}}} || {{{pure}}} || {{{-}}} || ||{{{expressions}}} || {{{exprs, expr, expression}}} || {{{defined}}} || {{{-}}} || ||{{{variables}}} || {{{vars, var, variable}}} || {{{module}}} || {{{mod}}} ||{{{file}}} || {{{-}}} || {{{dirty}}} || {{{-}}} || ||{{{dynamic_calls}}} || {{{dynref, dynrefs}}} || {{{spec}}} || {{{-}}} || ||{{{dynamic_calls}}} || {{{dyncall, dyncalls}}} || || || ||{{{dynamic_called_by}}} || {{{dyncalled_by}}} || || || ||{{{clause}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/FunctionClauseEntity Function clause entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || ||{{{calls}}} || {{{-}}} || {{{name}}} || {{{-}}} || ||{{{arguments}}} || {{{args}}} || {{{module}}} || {{{mod}}} || ||{{{body}}} || {{{-}}} || arity || {{{-}}} || ||{{{expressions}}} || {{{exprs, expr, expression}}} || {{{spec}}} ||{{{-}}} || ||{{{variables}}} || {{{vars, var, variable}}} || {{{index}}} || {{{-}}} || ||{{{file}}} || {{{-}}} ||{{{macro_value}}} ||{{{mac_val, macrovalue, macval}}} || ||{{{function}}} || {{{func}}} || || || ||{{{dynamic_calls}}} || {{{dyncall, dyncalls}}} || || || \\ |||||||| [wiki:SemanticQuery/ExpressionEntity Expression entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{fundef}}} || {{{-}}} || {{{type}}} || {{{-}}} || ||{{{functions}}} || {{{function, fun, funs}}} || {{{value}}} || {{{val}}} || ||{{{variables}}} || {{{vars, var, variable}}} || {{{class}}} || {{{-}}} || ||{{{records}}} || {{{record, rec, recs}}} || {{{last}}} || {{{is_last}}} || ||{{{macro}}} || {{{macros}}} || {{{index}}} || {{{-}}} || ||{{{subexpression}}} || {{{sub, esub, subexpr}}} || {{{tailcall}}} || {{{is_tailcall}}} || ||{{{parameter}}} || {{{param}}} || {{{has_side_effect}}} || {{{dirty}}} || ||{{{top_expression}}} || {{{top, top_expr}}} || || || ||{{{file}}} || {{{-}}} || {{{macro_value}}} || {{{macro_val, macrovalue, macval}}} || ||{{{dynamic_ functions}}} || {{{dynfun, dynfuns}}} || || || \\ |||||||| [wiki:SemanticQuery/VariableEntity Variable entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || ||{{{bindings}}} || {{{-}}} || || || ||{{{fundef}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/RecordEntity Record entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || ||{{{fields}}} || {{{-}}} || || || ||{{{file}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/RecordFieldEntity Record field entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || ||{{{record}}} || {{{rec}}} || || || ||{{{file}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/MacroEntity Macro entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || ||{{{file}}} || {{{-}}} || {{{arity}}} || {{{-}}} || ||{{{clause_references}}} || {{{clause_reference, clause_refs, clause_ref}}} || {{{const}}} || {{{-}}} || ||{{{all_references}}} || {{{all_reference, all_refs, all_ref}}} || {{{body}}} || {{{-}}} || \\ |||||||| [wiki:MetricQuery Metrics for files, functions and function clauses (as properties)] || ||''Name'' || ''Synonyms'' || ''File'' || ''Function'' || ''Function Clause'' || ||[wiki:MetricQuery#module_sum module_sum] || {{{mod_sum}}} || ok || - || - || ||[wiki:MetricQuery#function_sum function_sum] || {{{fun_sum}}} || - || ok || ok || ||[wiki:MetricQuery#line_of_code line_of_code] || {{{loc}}} || ok || ok || ok || ||[wiki:MetricQuery#char_of_code char_of_code] || {{{choc}}} || ok || ok || ok || ||[wiki:MetricQuery#number_of_fun number_of_fun] || {{{num_of_fun, num_of_functions, number_of_functions}}} || ok || - || - || ||[wiki:MetricQuery#number_of_macros number_of_macros] || {{{num_of_macros, num_of_macr}}} || ok || - || - || ||[wiki:MetricQuery#number_of_records number_of_records] || {{{num_of_records, num_of_rec}}} || ok || - || - || ||[wiki:MetricQuery#included_files included_files] || {{{inc_files}}} || ok || - || - || ||[wiki:MetricQuery#imported_modules imported_modules] || {{{imp_modules, imported_mod, imp_mod}}} || ok || - || - || ||[wiki:MetricQuery#number_of_funpath number_of_funpath] || {{{number_of_funpaths, num_of_funpath, num_of_funpaths}}} || ok || - || - || ||[wiki:MetricQuery#function_calls_in function_calls_in] || {{{fun_calls_in}}} || ok || - || - || ||[wiki:MetricQuery#function_calls_out function_calls_out] || {{{fun_calls_out}}} || ok || - || - || ||[wiki:MetricQuery#calls_for_function calls_for_function] || {{{calls_for_fun, call_for_function, call_for_fun}}} || - || ok || ok || ||[wiki:MetricQuery#calls_from_function calls_from_function] || {{{calls_from_fun, call_from_function, call_from_fun}}} || - || ok || ok || ||[wiki:MetricQuery#cohesion cohesion] || {{{coh}}} || ok || - || - || ||[wiki:MetricQuery#otp_used otp_used] || {{{otp}}} || ok || - || - || ||{{{max_application_depth}}} || {{{max_app_depth}}} || ok || ok || ok || ||[wiki:MetricQuery#max_depth_of_calling max_depth_of_calling] || {{{max_depth_calling, max_depth_of_call, max_depth_call}}} || ok || ok || ok || ||{{{min_depth_of_calling}}} || {{{min_depth_calling, min_depth_of_call, min_depth_call}}} || ok || - || ok || ||[wiki:MetricQuery#max_depth_of_cases max_depth_of_cases] || {{{max_depth_cases}}} || ok || ok || ok || ||[wiki:MetricQuery#max_depth_of_structs max_depth_of_structs] || {{{-}}} || ok || ok || ok || ||[wiki:MetricQuery#number_of_funclauses number_of_funclauses] || {{{num_of_funclauses, number_of_funclaus, num_of_funclaus}}} || ok || ok || ok || ||[wiki:MetricQuery#branches_of_recursion branches_of_recursion] || {{{branches_of_rec, branch_of_recursion, branch_of_rec}}} || ok || ok || ok || ||[wiki:MetricQuery#mcCabe mcCabe] || {{{mccabe}}} || ok || ok || ok || ||[wiki:MetricQuery#number_of_funexpr number_of_funexpr] || {{{num_of_funexpr}}} || ok || ok || ok || ||[wiki:MetricQuery#number_of_messpass number_of_messpass] || {{{num_of_messpass}}} || ok || ok || ok || ||[wiki:MetricQuery#fun_return_points fun_return_points] || {{{fun_return_point, function_return_points, function_return_point}}} || ok || ok || ok || ||[wiki:MetricQuery#max_length_of_line max_length_of_line] || {{{-}}} || ok || ok || ok || ||[wiki:MetricQuery#average_length_of_line average_length_of_line] || {{{avg_length_of_line}}} || ok || ok || ok || ||[wiki:MetricQuery#no_space_after_comma no_space_after_comma] || {{{-}}} || ok || ok || ok || ||[wiki:MetricQuery#is_tail_recursive is_tail_recursive] || {{{-}}} || - || ok || ok || \\ |||| '''Statistics''' || || ''Name'' || ''Synonyms'' || ||{{{minimum}}} || {{{min}}} || ||{{{maximum}}} || {{{max}}} || ||{{{sum}}} || {{{-}}} || ||{{{mean}}} || {{{average, avg}}} || ||{{{median}}} || {{{med}}} || ||{{{variance}}} || {{{var}}} || ||{{{standard_deviation}}} || {{{sd}}} ||