Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
366 changes: 366 additions & 0 deletions packages/app-web-docs/src/docs/user/languages/fixtures/java.json

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions packages/app-web-docs/src/docs/user/languages/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/class2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/class3" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/class4" languageId="java" />

#### 2. Class (iteration class)

<i>Iteration scope for classes: class bodies.</i>
Expand Down Expand Up @@ -705,6 +709,10 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/name/name.class2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/name/name.class3" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/name/name.class4" languageId="java" />

#### 8. Name: Constant

<i>Name (LHS) of a constant declaration</i>
Expand All @@ -719,6 +727,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/name/name.constructor2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/name/name.constructor3" languageId="java" />

#### 10. Name: Enum

<i>Name of an enum declaration</i>
Expand All @@ -731,6 +741,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/name/name.field.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/name/name.field.class2" languageId="java" />

#### 12. Name: Field enum

<i>Name (LHS) of a field declaration in an enum</i>
Expand Down Expand Up @@ -851,6 +863,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/namedFunction.constructor2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/namedFunction.constructor3" languageId="java" />

#### 2. Named function: Method

<i>A method declaration</i>
Expand All @@ -859,12 +873,16 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/namedFunction.method2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/namedFunction.method3" languageId="java" />

#### 3. Named function (iteration class)

<i>Iteration scope for named functions: class bodies.</i>

<ScopeVisualizer fixtureName="scopes/java/namedFunction.iteration.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/namedFunction.iteration.class2" languageId="java" />

### Statement

#### 1. Statement: Assignment
Expand Down Expand Up @@ -907,6 +925,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/statement/statement.constructor2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/statement/statement.constructor3" languageId="java" />

#### 7. Statement: Continue

<i>A continue statement</i>
Expand All @@ -931,6 +951,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/statement/statement.field.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/statement/statement.field.class2" languageId="java" />

#### 11. Statement: Field interface

<i>A field declaration in an interface</i>
Expand Down Expand Up @@ -983,6 +1005,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/statement/statement.method2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/statement/statement.method3" languageId="java" />

#### 19. Statement: Method interface

<i>A method declaration in an interface</i>
Expand Down Expand Up @@ -1089,6 +1113,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/statement/statement.iteration.class2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/statement/statement.iteration.class3" languageId="java" />

#### 35. Statement (iteration document)

<i>Iteration scope for statements: the entire document including leading and trailing empty lines.</i>
Expand Down Expand Up @@ -1139,6 +1165,12 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/type/type.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/type/type.class2" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/type/type.class3" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/type/type.class4" languageId="java" />

#### 7. Type: Constant

<i>Type of a constant declaration</i>
Expand All @@ -1157,6 +1189,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/type/type.field.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/type/type.field.class2" languageId="java" />

#### 10. Type: Field interface

<i>Type of a field declaration in an interface</i>
Expand Down Expand Up @@ -1289,6 +1323,8 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/java/value/value.field.class" languageId="java" />

<ScopeVisualizer fixtureName="scopes/java/value/value.field.class2" languageId="java" />

#### 5. Value: Field interface

<i>Value (RHS) of a field declaration in an interface</i>
Expand Down
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/scopes/class.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ Default: `class`

<ScopeVisualizer fixtureName="scopes/java/class2" />

<ScopeVisualizer fixtureName="scopes/java/class3" />

<ScopeVisualizer fixtureName="scopes/java/class4" />

##### JavaScript

<ScopeVisualizer fixtureName="scopes/javascript.core/class" />
Expand Down
34 changes: 34 additions & 0 deletions packages/app-web-docs/src/docs/user/scopes/fixtures/class.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,40 @@
}
]
},
{
"name": "scopes/java/class3",
"languageId": "java",
"facet": "class",
"code": "record Foo() {}",
"scopes": [
{
"targets": [
{
"content": "0:0-0:15",
"removal": "0:0-0:15"
}
],
"domain": "0:0-0:15"
}
]
},
{
"name": "scopes/java/class4",
"languageId": "java",
"facet": "class",
"code": "@bar\nrecord Foo() {}",
"scopes": [
{
"targets": [
{
"content": "0:0-1:15",
"removal": "0:0-1:15"
}
],
"domain": "0:0-1:15"
}
]
},
{
"name": "scopes/javascript.core/class.iteration.document",
"languageId": "javascript.core",
Expand Down
86 changes: 86 additions & 0 deletions packages/app-web-docs/src/docs/user/scopes/fixtures/name.json
Original file line number Diff line number Diff line change
Expand Up @@ -4203,6 +4203,40 @@
}
]
},
{
"name": "scopes/java/name/name.class3",
"languageId": "java",
"facet": "name.class",
"code": "record Foo() {}",
"scopes": [
{
"targets": [
{
"content": "0:7-0:10",
"removal": "0:7-0:10"
}
],
"domain": "0:0-0:15"
}
]
},
{
"name": "scopes/java/name/name.class4",
"languageId": "java",
"facet": "name.class",
"code": "@Bar\nrecord Foo() {}",
"scopes": [
{
"targets": [
{
"content": "1:7-1:10",
"removal": "1:7-1:10"
}
],
"domain": "0:0-1:15"
}
]
},
{
"name": "scopes/java/name/name.constant",
"languageId": "java",
Expand Down Expand Up @@ -4272,6 +4306,32 @@
}
]
},
{
"name": "scopes/java/name/name.constructor3",
"languageId": "java",
"facet": "name.constructor",
"code": "record Foo() {\n Foo {}\n}",
"scopes": [
{
"targets": [
{
"content": "0:7-0:10",
"removal": "0:7-0:10"
}
],
"domain": "0:0-2:1"
},
{
"targets": [
{
"content": "1:4-1:7",
"removal": "1:4-1:8"
}
],
"domain": "1:4-1:10"
}
]
},
{
"name": "scopes/java/name/name.enum",
"languageId": "java",
Expand Down Expand Up @@ -4333,6 +4393,32 @@
}
]
},
{
"name": "scopes/java/name/name.field.class2",
"languageId": "java",
"facet": "name.field.class",
"code": "record Foo() {\n static int bar = 0;\n}",
"scopes": [
{
"targets": [
{
"content": "0:7-0:10",
"removal": "0:7-0:10"
}
],
"domain": "0:0-2:1"
},
{
"targets": [
{
"content": "1:15-1:18",
"removal": "1:4-1:21"
}
],
"domain": "1:4-1:23"
}
]
},
{
"name": "scopes/java/name/name.field.enum",
"languageId": "java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,23 @@
}
]
},
{
"name": "scopes/java/namedFunction.constructor3",
"languageId": "java",
"facet": "namedFunction.constructor",
"code": "record Foo() {\n Foo {}\n}",
"scopes": [
{
"targets": [
{
"content": "1:4-1:10",
"removal": "1:0-2:0"
}
],
"domain": "1:4-1:10"
}
]
},
{
"name": "scopes/java/namedFunction.iteration.class",
"languageId": "java",
Expand All @@ -548,6 +565,22 @@
}
]
},
{
"name": "scopes/java/namedFunction.iteration.class2",
"languageId": "java",
"facet": "namedFunction.iteration.class",
"code": "record Foo() { }",
"scopes": [
{
"targets": [
{
"content": "0:14-0:15"
}
],
"domain": "0:14-0:15"
}
]
},
{
"name": "scopes/java/namedFunction.method",
"languageId": "java",
Expand Down Expand Up @@ -582,6 +615,23 @@
}
]
},
{
"name": "scopes/java/namedFunction.method3",
"languageId": "java",
"facet": "namedFunction.method",
"code": "record Foo() {\n void bar() {}\n}",
"scopes": [
{
"targets": [
{
"content": "1:4-1:17",
"removal": "1:0-2:0"
}
],
"domain": "1:4-1:17"
}
]
},
{
"name": "scopes/javascript.core/namedFunction/namedFunction.constructor",
"languageId": "javascript.core",
Expand Down
Loading
Loading