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/FunctionParameterEntity Function parameter] * [SemanticQuery/ExpressionEntity Expression] * [SemanticQuery/VariableEntity Variable] * [SemanticQuery/RecordEntity Record] * [SemanticQuery/RecordFieldEntity Record field] * [SemanticQuery/MacroEntity Macro] * [SemanticQuery/SpecEntity Spec] * [SemanticQuery/SpecParamEntity Spec param] * [SemanticQuery/TypeEntity Type] == 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}}} || {{{-}}} || ||{{{@spec}}} || {{{-}}} || ||{{{@type}}} || {{{-}}} || \\ |||||||| [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}}} || {{{-}}} || || || ||{{{specs}}} || {{{spec}}} || || || ||{{{types}}} || {{{typedef, typedefs, type}}} || || || ||{{{typerefs}}} || {{{-}}} || || || \\ |||||||| [wiki:SemanticQuery/FunctionEntity Function entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || ||{{{references}}} || {{{refs, ref, reference}}} || {{{exported}}} || {{{-}}} || ||{{{calls}}} || {{{-}}} || {{{name}}} || {{{-}}} || ||{{{called_by}}} || {{{-}}} || {{{arity}}} || {{{-}}} || ||{{{arguments}}} || {{{args, parameters, params}}} || {{{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}}} || {{{-}}} || || || ||{{{spec}}} || {{{-}}} || || || ||{{{returntype}}} || {{{returntypes, rettype}}} || || || \\ |||||||| [wiki:SemanticQuery/FunctionClauseEntity Function clause entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || ||{{{calls}}} || {{{-}}} || {{{name}}} || {{{-}}} || ||{{{arguments}}} || {{{args, parameters, params}}} || {{{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}}} || || || ||{{{spec}}} || {{{-}}} || || || ||{{{returntype}}} || {{{returntypes, rettype}}} || || || \\ |||||||| [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/FunctionParameterEntity Function parameter 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}}} || || || ||{{{type}}} || {{{-}}} || || || \\ |||||||| [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}}} || {{{-}}} || || || ||{{{type}}} || {{{types}}} || || || \\ |||||||| [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:SemanticQuery/SpecEntity Spec entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{function}}} || {{{'fun', func}}} || {{{name}}} || {{{funname}}} || ||{{{file}}} || {{{deffile}}} || {{{arity}}} || {{{-}}} || ||{{{refmod}}} || {{{modref}}} || {{{text}}} || {{{-}}} || ||{{{returntype}}} || {{{returntypes}}} || {{{returntext}}} || {{{-}}} || ||{{{guardtype}}} || {{{guardtypes}}} || {{{guardtext}}} || {{{-}}} || ||{{{arguments}}} || {{{args, parameters, params}}} || || || \\ |||||||| [wiki:SemanticQuery/SpecParamEntity Spec-param entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{type}}} || {{{-}}} || {{{name}}} || {{{-}}} || || || || {{{index}}} || {{{-}}} || || || || {{{text}}} || {{{-}}} || \\ |||||||| [wiki:SemanticQuery/TypeEntity Type entity] || |||| '''Selectors''' |||| '''Properties''' || ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || ||{{{file}}} || {{{-}}} || {{{name}}} || {{{-}}} || ||{{{subtypes}}} || {{{subtype, sub}}} || {{{arity}}} || {{{number_of_parameters}}} || ||{{{arguments}}} || {{{args, parameters, params}}} || {{{exported}}} || {{{remote_type}}} || ||{{{specref}}} || {{{specrefs, refspec, refspecs}}} || {{{opaque}}} || {{{isopaque, is_opaque}}} || ||{{{references}}} || {{{refs, ref}}} || {{{builtin}}} || {{{isbuiltin, is_builtin, is_built_in}}} || ||{{{paramsref}}} || {{{paramsrefs}}} || || || \\ |||||||| [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}}} ||