Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import CodeLocation from "./CodeLocation";
/**
* An extra tolen is a parto of the source file that doesn't directly influence the AST, but it should be preserved when foromatting the code.
*/
export abstract class ExtraToken {
constructor(public pos: CodeLocation) {}
}
/**
* A new line between two other tokens.
*/
export class NewLineExtraToken extends ExtraToken {}
export class SingleLineComment extends ExtraToken {
constructor(pos: CodeLocation, public contents: string) {
super(pos);
}
}
export class MultiLineComment extends ExtraToken {
constructor(pos: CodeLocation, public contents: string) {
super(pos);
}
}
2d56448eaThis file is pinned to the selected release. Download the original to open it in your design tool.