Skip to content

Commit

Permalink
meta: Removed some legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-coster committed Aug 2, 2023
1 parent 7d1c4c3 commit 071e446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 0 additions & 9 deletions packages/parser/src/project.code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ export class Code {
return undefined;
}

/** @private Not yet implemented */
canAddJsdocTagAt(offset: number | LinePosition, column?: number): boolean {
const inJsdoc = this.getJsdocAt(offset, column);
if (!inJsdoc) {
return false;
}
return false;
}

getFunctionArgRangeAt(
offset: number | LinePosition,
column?: number,
Expand Down
12 changes: 7 additions & 5 deletions packages/parser/src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,15 @@ export class Project {
// TODO: Find a better way than brute-forcing to resolve cross-file references
for (const pass of [1]) {
logger.info(`Re-processing pass ${pass}...`);
const reloads: Promise<any>[] = [];
// const reloads: Promise<any>[] = [];
for (const asset of assets) {
for (const file of asset.gmlFilesArray) {
reloads.push(file.reload(file.content));
}
asset.updateGlobals();
asset.updateAllSymbols();
// for (const file of asset.gmlFilesArray) {
// reloads.push(file.reload(file.content));
// }
}
await Promise.all(reloads);
// await Promise.all(reloads);
}

// But for now, that's what we'll do!
Expand Down

0 comments on commit 071e446

Please sign in to comment.