proc_macro
Version:
A JavaScript implementation of proc_macros.
16 lines • 431 B
TypeScript
/**
* Section defines the start and end of a code snippet part of a token.
*/
declare type Section = [number, number];
/**
* TODO: Implement spans for more accurate debugging.
*/
export default class Span {
private _sections;
get sections(): readonly Section[];
constructor(sections?: Section[]);
expand(section: Section): void;
toParenthesisString(): string;
}
export {};
//# sourceMappingURL=span.d.ts.map