Lines Matching refs:statement
70 program.forEach((statement) => {
71 if (statement.type === 'ExpressionStatement') {
72 const expr = statement.expression;
82 `${link}#L${statement.loc.start.line}`;
111 } else if (statement.type === 'VariableDeclaration') {
112 for (const decl of statement.declarations) {
118 `${link}#L${statement.loc.start.line}`;
122 definition[decl.id.name] = `${link}#L${statement.loc.start.line}`;
135 program.forEach((statement) => {
136 if (statement.type === 'ExpressionStatement') {
137 const expr = statement.expression;
166 definition[name] = `${link}#L${statement.loc.start.line}`;
172 } else if (statement.type === 'FunctionDeclaration') {
173 const name = statement.id.name;
177 `${link}#L${statement.loc.start.line}`;
179 } else if (statement.type === 'ClassDeclaration') {
180 if (!exported.constructors.includes(statement.id.name)) return;
181 definition[statement.id.name] = `${link}#L${statement.loc.start.line}`;
183 const name = statement.id.name.slice(0, 1).toLowerCase() +
184 statement.id.name.slice(1);
186 statement.body.body.forEach((defn) => {
192 definition[`new ${statement.id.name}`] =
201 program.forEach((statement) => {
202 if (statement.type === 'FunctionDeclaration') {
203 const name = statement.id.name;
205 definition[indirect[name]] = `${link}#L${statement.loc.start.line}`;