Skip to main content

PHP

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.

Argument or parameter

1. Argument: Actual constructor multi line

A multi line argument in a constructor call. Insertion delimiter should include new line.

2. Argument: Actual constructor single line

A single line argument in a constructor call

3. Argument: Actual method multi line

A multi line argument in a method call. Insertion delimiter should include new line.

4. Argument: Actual method single line

A single line argument in a method call

5. Argument: Actual multi line

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

6. Argument: Actual single line

A single line argument in a function call

7. Argument: Formal constructor multi line

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

8. Argument: Formal constructor single line

A single line parameter in a constructor declaration

9. Argument: Formal method multi line

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

10. Argument: Formal method single line

A single line parameter in a class method declaration

11. Argument: Formal multi line

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

12. Argument: Formal single line

A single line parameter in a function declaration

13. Argument: Actual (iteration)

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

14. Argument: Actual constructor (iteration)

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

15. Argument: Actual method (iteration)

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

16. Argument: Formal (iteration)

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

17. Argument: Formal constructor (iteration)

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

18. Argument: Formal method (iteration)

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

Collection key

1. Key: Map pair

Key (LHS) of a key-value pair of a map

Comment

1. Comment: Block

A block comment

2. Comment: Line

A line comment

Name

1. Name: Argument catch

Name of a parameter in a catch clause

2. Name: Argument formal

Name of a parameter in a function declaration

3. Name: Assignment

Name (LHS) of an assignment

4. Name: Field class

Name (LHS) of a field in a class

5. Name: Variable

Name (LHS) of a variable declaration

6. Name: Argument formal (iteration)

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

String

1. String: Single line

A single-line string

Type

1. Type: Argument catch

Type of parameter in a catch clause

2. Type: Argument formal

Type of formal parameter in a function declaration

3. Type: Cast

A type cast

4. Type: Field class

Type of field in a class

5. Type: Argument formal (iteration)

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

Value

1. Value: Assignment

Value (RHS) of an assignment

2. Value: Map pair

Value (RHS) of a key-value pair in a map

3. Value: Return

Return value of a function

4. Value: Variable

Value (RHS) of a variable declaration

5. Value: Yield

Value of a yield statement

Internal scopes

The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality.

Disqualify delimiter

1. Disqualify delimiter

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

Text fragment

1. Text fragment: String single line

Text fragment consisting of a single-line string