@anysphere/scip-typescript
Version:
SCIP indexer for TypeScript and JavaScript
17 lines (14 loc) • 641 B
text/typescript
// < definition syntax 1.0.0 src/`property-assignment.ts`/
export function propertyAssignment() {
// ^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`property-assignment.ts`/propertyAssignment().
return { a: 'a' }
// ^ definition syntax 1.0.0 src/`property-assignment.ts`/a0:
}
export function shorthandPropertyAssignment() {
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`property-assignment.ts`/shorthandPropertyAssignment().
const a = 'a'
// ^ definition local 2
return { a }
// ^ definition syntax 1.0.0 src/`property-assignment.ts`/a1:
// ^ reference local 2
}