|
|
@ -68,7 +68,6 @@ export default class Component {
|
|
|
|
module_script: Node;
|
|
|
|
module_script: Node;
|
|
|
|
|
|
|
|
|
|
|
|
imports: Node[] = [];
|
|
|
|
imports: Node[] = [];
|
|
|
|
hasComponents: boolean;
|
|
|
|
|
|
|
|
module_javascript: string;
|
|
|
|
module_javascript: string;
|
|
|
|
javascript: string;
|
|
|
|
javascript: string;
|
|
|
|
|
|
|
|
|
|
|
@ -90,18 +89,18 @@ export default class Component {
|
|
|
|
file: string;
|
|
|
|
file: string;
|
|
|
|
locate: (c: number) => { line: number, column: number };
|
|
|
|
locate: (c: number) => { line: number, column: number };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO this does the same as component.locate! remove one or the other
|
|
|
|
|
|
|
|
locator: (search: number, startIndex?: number) => {
|
|
|
|
|
|
|
|
line: number,
|
|
|
|
|
|
|
|
column: number
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
stylesheet: Stylesheet;
|
|
|
|
stylesheet: Stylesheet;
|
|
|
|
|
|
|
|
|
|
|
|
userVars: Set<string> = new Set();
|
|
|
|
userVars: Set<string> = new Set();
|
|
|
|
templateVars: Map<string, string> = new Map();
|
|
|
|
templateVars: Map<string, string> = new Map();
|
|
|
|
aliases: Map<string, string> = new Map();
|
|
|
|
aliases: Map<string, string> = new Map();
|
|
|
|
usedNames: Set<string> = new Set();
|
|
|
|
usedNames: Set<string> = new Set();
|
|
|
|
init_uses_self = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
locator: (search: number, startIndex?: number) => {
|
|
|
|
|
|
|
|
line: number,
|
|
|
|
|
|
|
|
column: number
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
ast: Ast,
|
|
|
|
ast: Ast,
|
|
|
|