Skip to main content

C

Scopes

Supported facets

These facets are supported

Argument list

  • Actual empty: An empty list of arguments in a function call
  • Actual method empty: An empty list of arguments in a method call
  • Actual method multi line: A multi line list of arguments in a method call
  • Actual method single line: A single line list of arguments in a method call
  • Actual multi line: A multi line list of arguments in a function call
  • Actual single line: A single line list of arguments in a function call
  • Formal empty: An empty list of parameters in a function declaration
  • Formal multi line: A multi line list of parameters in a function declaration
  • Formal single line: A single line list of parameters in a function declaration

Argument or parameter

  • Actual: An argument/parameter in a function call
  • Actual (iteration): Iteration scope of arguments in a function call, should be inside the parens of the argument list
  • Actual method: An argument/parameter in a method call
  • Actual method (iteration): Iteration scope of arguments in a method call, should be inside the parens of the argument list
  • Formal: A parameter in a function declaration
  • Formal (iteration): Iteration scope of the formal parameters of a function declaration; should be the whole parameter list. The domain should be the entire function.

Branch

  • If: An if/elif/else branch
  • If (iteration): Iteration scope for if/elif/else branch; should be the entire if-else statement
  • Loop: A for / while loop branch. For most languages there will just be one branch for the entire loop, but eg in Python you can have an else branch for a loop.
  • Switch case: A case/default branch in a switch/match statement
  • Switch case (iteration): Iteration scope for branches in a switch/match statement; should contain all the cases
  • Ternary: A branch in a ternary expression

Class

  • Class: A class in an object-oriented language
  • Iteration document: Iteration scope for classes. The entire document.

Class name

  • Class name: The name of a class
  • Iteration document: Iteration scope for class names. The entire document.

Collection item

  • Unenclosed: An item in a comma-separated list without enclosing delimiters. This could be multi-variable declarations, import statements, etc.
  • Unenclosed (iteration): Iteration scope for items in a comma-separated list without enclosing delimiters

Comment

  • Block: A block comment
  • Line: A line comment

Condition

  • Do while: A condition in a do while loop
  • For: A condition in a for loop
  • If: A condition in an if statement
  • Switch case: A condition in a switch statement
  • Switch case (iteration): The iteration scope for conditions in a switch statement: should contain all the cases, and exclude any curly brackets delimiting the full switch statement body
  • Ternary: A condition in a ternary expression
  • While: A condition in a while loop

Disqualify delimiter

  • Disqualify delimiter: Used to disqualify a token from being treated as a surrounding pair delimiter. This will usually be operators containing `>` or `<`, eg `<`, `<=`, `->`, etc

Function call

  • Function call: A function call

Function callee

  • Function callee: The function being called in a function call

Function name

  • Function name: The name of a function
  • Iteration document: Iteration scope for function names: the entire document

If statement

  • If statement: An if statement

List

  • List: A list/array

Name

  • Argument formal: The name of a parameter in a function declaration
  • Argument formal (iteration): Iteration scope of the names of the formal parameters of a function declaration; should be the whole parameter list
  • Assignment: Name (LHS) of an assignment
  • Class: Name of a class
  • Field: Name (LHS) of a field in a class / interface
  • Function: Name of a function
  • Iteration block: Iteration scope for names: statement blocks (body of functions/if statements/for loops/etc).
  • Iteration document: Iteration scope for names: the entire document
  • Variable: Name (LHS) of a variable declaration

Named function

  • Named function: A named function declaration
  • Iteration document: Iteration scope for named functions: the entire document

Statement

  • Statement: A statement, eg assignment, for loop, etc
  • Class: An class declaration
  • Iteration block: Iteration scope for statements. Statement blocks(body of functions/if statements/for loops/etc).
  • Iteration document: Iteration scope for statements. The entire document.

String

  • Single line: A single-line string

Text fragment

  • Comment block: Text fragment consisting of a block comment
  • Comment line: Text fragment consisting of a line comment
  • String single line: Text fragment consisting of a single-line string

Type

  • Argument formal: Type of formal parameter in a function declaration
  • Argument formal (iteration): Iteration scope of the types of the formal parameters of a function declaration; should be the whole parameter list
  • Cast: A type cast
  • Class: An class declaration
  • Enum: An enum declaration
  • Field: Type of field in a class / interface
  • Field (iteration): Iteration scope for type of field in a class / interface; should be entire class / interface body
  • Return: Type of return value in a function declaration
  • Variable: Type of variable in a variable declaration

Value

  • Assignment: Value (RHS) of an assignment
  • Return: Return value of a function
  • Variable: Value (RHS) of a variable declaration

Unsupported facets

These facets are not supported yet and needs a developer to implement them
+ Click to expand