157 | | |
158 | | }}} |
159 | | |
160 | | This page lists the names of initial selectors, selectors and properties available in the semantic query language along with their possible abbreviations and synonyms. |
161 | | For examples of usage, see [SemanticQuery/Examples this page]. |
162 | | |
163 | | 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. |
164 | | * [SemanticQuery/FileEntity File] |
165 | | * [SemanticQuery/FunctionEntity Function] |
166 | | * [SemanticQuery/ExpressionEntity Expression] |
167 | | * [SemanticQuery/VariableEntity Variable] |
168 | | * [SemanticQuery/RecordEntity Record] |
169 | | * [SemanticQuery/RecordFieldEntity Record field] |
170 | | * [SemanticQuery/MacroEntity Macro] |
171 | | |
172 | | == Cheat sheet of query componens |
173 | | |
174 | | |||| '''Initial selectors''' || |
175 | | ||''Name'' ||''Synonyms'' || |
176 | | ||{{{files}}} || {{{-}}} || |
177 | | ||{{{@file}}} || {{{-}}} || |
178 | | ||{{{modules}}} || {{{mods}}} || |
179 | | ||{{{@module}}} || {{{@mod}}} || |
180 | | ||{{{@function}}} || {{{@fun}}} || |
181 | | ||{{{@definition}}} || {{{@def}}} || |
182 | | ||{{{@expression}}} || {{{@expr}}} || |
183 | | ||{{{@variable}}} || {{{@var}}} || |
184 | | ||{{{@record}}} || {{{@rec}}} || |
185 | | ||{{{@recfield}}} || {{{@field}}} || |
186 | | ||{{{@macro}}} || {{{-}}} || |
187 | | \\ |
188 | | |||||||| [wiki:SemanticQuery/FileEntity File entity] || |
189 | | |||| '''Selectors''' |||| '''Properties''' || |
190 | | ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || |
191 | | ||{{{function}}} || {{{functions, fun, funs}}} || {{{module}}} || {{{is_module, mod, is_mod}}} || |
192 | | ||{{{record}}} || {{{records, rec, recs}}} || {{{header}}} || {{{is_header}}} || |
193 | | ||{{{macro}}} || {{{macros}}} || {{{name}}} || {{{-}}} || |
194 | | ||{{{includes}}} || {{{-}}} || {{{directory}}} || {{{dir}}} || |
195 | | ||{{{included_by}}} || {{{-}}} || {{{path}}} || {{{-}}} || |
196 | | ||{{{imports}}} || {{{-}}} || || || |
197 | | ||{{{exports}}} || {{{-}}} || || || |
198 | | \\ |
199 | | |||||||| [wiki:SemanticQuery/FunctionEntity Function entity] || |
200 | | |||| '''Selectors''' |||| '''Properties''' || |
201 | | ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || |
202 | | ||{{{references}}} || {{{refs, ref, reference}}} || {{{exported}}} || {{{-}}} || |
203 | | ||{{{calls}}} || {{{-}}} || {{{name}}} || {{{-}}} || |
204 | | ||{{{called_by}}} || {{{-}}} || {{{arity}}} || {{{-}}} || |
205 | | ||{{{arguments}}} || {{{args}}} || {{{bif}}} || {{{-}}} || |
206 | | ||{{{body}}} || {{{-}}} || {{{pure}}} || {{{-}}} || |
207 | | ||{{{expressions}}} || {{{exprs, expr, expression}}} || {{{defined}}} || {{{-}}} || |
208 | | ||{{{variables}}} || {{{vars, var, variable}}} || {{{module}}} || {{{mod}}} |
209 | | ||{{{file}}} || {{{-}}} || {{{dirty}}} || {{{-}}} || |
210 | | ||{{{dynamic_calls}}} || {{{dynref, dynrefs}}} || {{{spec}}} || {{{-}}} || |
211 | | ||{{{dynamic_calls}}} || {{{dyncall, dyncalls}}} || || || |
212 | | ||{{{dynamic_called_by}}} || {{{dyncalled_by}}} || || || |
213 | | \\ |
214 | | |||||||| [wiki:SemanticQuery/ExpressionEntity Expression entity] || |
215 | | |||| '''Selectors''' |||| '''Properties''' || |
216 | | ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || |
217 | | ||{{{fundef}}} || {{{-}}} || {{{type}}} || {{{-}}} || |
218 | | ||{{{functions}}} || {{{function, fun, funs}}} || {{{value}}} || {{{val}}} || |
219 | | ||{{{variables}}} || {{{vars, var, variable}}} || {{{class}}} || {{{-}}} || |
220 | | ||{{{records}}} || {{{record, rec, recs}}} || {{{last}}} || {{{is_last}}} || |
221 | | ||{{{macro}}} || {{{macros}}} || {{{index}}} || {{{-}}} || |
222 | | ||{{{subexpression}}} || {{{sub, esub, subexpr}}} || {{{tailcall}}} || {{{is_tailcall}}} || |
223 | | ||{{{parameter}}} || {{{param}}} || {{{has_side_effect}}} || {{{dirty}}} || |
224 | | ||{{{top_expression}}} || {{{top, top_expr}}} || || || |
225 | | ||{{{file}}} || {{{-}}} || || || |
226 | | ||{{{dynamic_ functions}}} || {{{dynfun, dynfuns}}} || || || |
227 | | \\ |
228 | | |||||||| [wiki:SemanticQuery/VariableEntity Variable entity] || |
229 | | |||| '''Selectors''' |||| '''Properties''' || |
230 | | ||''Name'' || ''Synonyms'' || ''Name'' || ''Synonyms'' || |
231 | | ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || |
232 | | ||{{{bindings}}} || {{{-}}} || || || |
233 | | ||{{{fundef}}} || {{{-}}} || || || |
234 | | \\ |
235 | | |||||||| [wiki:SemanticQuery/RecordEntity Record entity] || |
236 | | |||| '''Selectors''' |||| '''Properties''' || |
237 | | ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || |
238 | | ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || |
239 | | ||{{{fields}}} || {{{-}}} || || || |
240 | | ||{{{file}}} || {{{-}}} || || || |
241 | | \\ |
242 | | |||||||| [wiki:SemanticQuery/RecordFieldEntity Record field entity] || |
243 | | |||| '''Selectors''' |||| '''Properties''' || |
244 | | ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || |
245 | | ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || |
246 | | ||{{{record}}} || {{{rec}}} || || || |
247 | | ||{{{file}}} || {{{-}}} || || || |
248 | | \\ |
249 | | |||||||| [wiki:SemanticQuery/MacroEntity Macro entity] || |
250 | | |||| '''Selectors''' |||| '''Properties''' || |
251 | | ||''Name'' ||''Synonyms'' ||''Name'' ||''Synonyms'' || |
252 | | ||{{{references}}} || {{{refs, ref, reference}}} || {{{name}}} || {{{-}}} || |
253 | | ||{{{file}}} || {{{-}}} || {{{arity}}} || {{{-}}} || |
254 | | || || || {{{const}}} || {{{-}}} || |
255 | | \\ |
256 | | |||||||| [wiki:MetricQuery Metrics for files and functions (as properties)] || |
257 | | ||''Name'' || ''Synonyms'' || ''File'' || ''Function'' || |
258 | | ||[wiki:MetricQuery#module_sum module_sum] || {{{mod_sum}}} || ok || - || |
259 | | ||[wiki:MetricQuery#function_sum function_sum] || {{{fun_sum}}} || - || ok || |
260 | | ||[wiki:MetricQuery#line_of_code line_of_code] || {{{loc}}} || ok || ok || |
261 | | ||[wiki:MetricQuery#char_of_code char_of_code] || {{{choc}}} || ok || ok || |
262 | | ||[wiki:MetricQuery#number_of_fun number_of_fun] || {{{num_of_fun, num_of_functions, number_of_functions}}} || ok || - || |
263 | | ||[wiki:MetricQuery#number_of_macros number_of_macros] || {{{num_of_macros, num_of_macr}}} || ok || - || |
264 | | ||[wiki:MetricQuery#number_of_records number_of_records] || {{{num_of_records, num_of_rec}}} || ok || - || |
265 | | ||[wiki:MetricQuery#included_files included_files] || {{{inc_files}}} || ok || - || |
266 | | ||[wiki:MetricQuery#imported_modules imported_modules] || {{{imp_modules, imported_mod, imp_mod}}} || ok || - || |
267 | | ||[wiki:MetricQuery#number_of_funpath number_of_funpath] || {{{number_of_funpaths, num_of_funpath, num_of_funpaths}}} || ok || - || |
268 | | ||[wiki:MetricQuery#function_calls_in function_calls_in] || {{{fun_calls_in}}} || ok || - || |
269 | | ||[wiki:MetricQuery#function_calls_out function_calls_out] || {{{fun_calls_out}}} || ok || - || |
270 | | ||[wiki:MetricQuery#calls_for_function calls_for_function] || {{{calls_for_fun, call_for_function, call_for_fun}}} || - || ok || |
271 | | ||[wiki:MetricQuery#calls_from_function calls_from_function] || {{{calls_from_fun, call_from_function, call_from_fun}}} || - || ok || |
272 | | ||[wiki:MetricQuery#cohesion cohesion] || {{{coh}}} || ok || - || |
273 | | ||[wiki:MetricQuery#otp_used otp_used] || {{{otp}}} || ok || - || |
274 | | ||{{{max_application_depth}}} || {{{max_app_depth}}} || ok || ok || |
275 | | ||[wiki:MetricQuery#max_depth_of_calling max_depth_of_calling] || {{{max_depth_calling, max_depth_of_call, max_depth_call}}} || ok || ok || |
276 | | ||{{{min_depth_of_calling}}} || {{{min_depth_calling, min_depth_of_call, min_depth_call}}} || ok || - || |
277 | | ||[wiki:MetricQuery#max_depth_of_cases max_depth_of_cases] || {{{max_depth_cases}}} || ok || ok || |
278 | | ||[wiki:MetricQuery#max_depth_of_structs max_depth_of_structs] || {{{-}}} || ok || ok || |
279 | | ||[wiki:MetricQuery#number_of_funclauses number_of_funclauses] || {{{num_of_funclauses, number_of_funclaus, num_of_funclaus}}} || ok || ok || |
280 | | ||[wiki:MetricQuery#branches_of_recursion branches_of_recursion] || {{{branches_of_rec, branch_of_recursion, branch_of_rec}}} || ok || ok || |
281 | | ||[wiki:MetricQuery#mcCabe mcCabe] || {{{mccabe}}} || ok || ok || |
282 | | ||[wiki:MetricQuery#number_of_funexpr number_of_funexpr] || {{{num_of_funexpr}}} || ok || ok || |
283 | | ||[wiki:MetricQuery#number_of_messpass number_of_messpass] || {{{num_of_messpass}}} || ok || ok || |
284 | | ||[wiki:MetricQuery#fun_return_points fun_return_points] || {{{fun_return_point, function_return_points, function_return_point}}} || ok || ok || |
285 | | ||[wiki:MetricQuery#max_length_of_line max_length_of_line] || {{{-}}} || ok || ok || |
286 | | ||[wiki:MetricQuery#average_length_of_line average_length_of_line] || {{{avg_length_of_line}}} || ok || ok || |
287 | | ||[wiki:MetricQuery#no_space_after_comma no_space_after_comma] || {{{-}}} || ok || ok || |
288 | | ||[wiki:MetricQuery#is_tail_recursive is_tail_recursive] || {{{-}}} || - || ok || |
289 | | \\ |
290 | | |||| '''Statistics''' || |
291 | | || ''Name'' || ''Synonyms'' || |
292 | | ||{{{minimum}}} || {{{min}}} || |
293 | | ||{{{maximum}}} || {{{max}}} || |
294 | | ||{{{sum}}} || {{{-}}} || |
295 | | ||{{{mean}}} || {{{average, avg}}} || |
296 | | ||{{{median}}} || {{{med}}} || |
297 | | ||{{{variance}}} || {{{var}}} || |
298 | | ||{{{standard_deviation}}} || {{{sd}}} || |