oxc/crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.snap
Dunqing be7b8c6845 test(semantic): add JSXIdentifierReference-related tests (#5224)
These tests demonstrate what kind of JSX will have references.
2024-08-30 17:43:34 +00:00

34 lines
728 B
Text

---
source: crates/oxc_semantic/tests/main.rs
input_file: crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx
---
[
{
"children": [],
"flags": "ScopeFlags(StrictMode | Top)",
"id": 0,
"node": "Program",
"symbols": [
{
"flags": "SymbolFlags(BlockScopedVariable)",
"id": 0,
"name": "A",
"node": "VariableDeclarator(A)",
"references": [
{
"flags": "ReferenceFlags(Read)",
"id": 0,
"name": "A",
"node_id": 13
},
{
"flags": "ReferenceFlags(Read)",
"id": 1,
"name": "A",
"node_id": 22
}
]
}
]
}
]