@code-to-json/core
Version:
[](https://travis-ci.org/code-to-json/code-to-json) [](https://d
28 lines (23 loc) • 621 B
text/typescript
import * as ts from 'typescript';
import { Flags } from './flags';
import { SourceFileRef } from './processing-queue/ref';
export interface EntityMap {
declaration: ts.Declaration;
symbol: ts.Symbol;
type: ts.Type;
node: ts.Node;
sourceFile: ts.SourceFile;
}
export interface SerializedEntity<THING extends string> {
entity: THING;
id: string;
flags?: Flags;
text?: string;
name?: string;
}
export type CodePoisition = [string, number, number];
export type CodeRange = [string, number, number, number, number];
export interface HasPosition {
sourceFile?: SourceFileRef;
location: CodeRange;
}