Skip to main content

R

Scopes

Below are visualizations of all our scope tests for this language. These were created primarily for testing purposes rather than as documentation. There are quite a few, and they may feel a bit overwhelming from a documentation standpoint.

Anonymous function

1. Anonymous function

An anonymous function, eg a lambda function, an arrow function, etc.

Argument list

1. Argument list: Actual empty

An empty list of arguments in a function call. Insertion delimiter should be empty.

2. Argument list: Actual method empty

An empty list of arguments in a method call. Insertion delimiter should be empty.

3. Argument list: Actual method multi line

A multi line list of arguments in a method call. Insertion delimiter should include new line.

4. Argument list: Actual method single line

A single line list of arguments in a method call

5. Argument list: Actual multi line

A multi line list of arguments in a function call. Insertion delimiter should include new line.

6. Argument list: Actual single line

A single line list of arguments in a function call

7. Argument list: Formal empty

An empty list of parameters in a function declaration. Insertion delimiter should be empty.

8. Argument list: Formal lambda empty

An empty list of parameters in a lambda declaration. Insertion delimiter should be empty.

9. Argument list: Formal lambda multi line

A multi line list of parameters in a lambda declaration. Insertion delimiter should include new line.

10. Argument list: Formal lambda single line

A single line list of parameters in a lambda declaration

11. Argument list: Formal multi line

A multi line list of parameters in a function declaration. Insertion delimiter should include new line.

12. Argument list: Formal single line

A single line list of parameters in a function declaration

Argument or parameter

1. Argument: Actual multi line

A multiline argument in a function call. Insertion delimiter should include new line.

2. Argument: Actual single line

A single line argument in a function call

3. Argument: Formal multi line

A multi line parameter in a function declaration. Insertion delimiter should include new line.

4. Argument: Formal single line

A single line parameter in a function declaration

5. Argument: Actual (iteration)

Iteration scope for arguments in a function call: the argument list. The domain should be the entire function call.

6. Argument: Formal (iteration)

Iteration scope for formal parameters in a function declaration: the parameters list. The domain should be the entire function.

Comment

1. Comment: Line

A line comment

Function call

1. Function call

A function call

2. Function call: Method

A method call

Function callee

1. Function callee

The function being called in a function call

2. Function callee: Method

The function being called in a method call, including parent objects.

If statement

1. If statement

An if statement

Name

1. Name: Assignment

Name (LHS) of an assignment

2. Name: Function

Name of a function

3. Name: Variable

Name (LHS) of a variable declaration

Named function

1. Named function

A named function declaration

Value

1. Value: Assignment

Value (RHS) of an assignment

2. Value: Variable

Value (RHS) of a variable declaration