Skip to content

Commit

Permalink
Address some todos
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnotch committed Feb 8, 2025
1 parent 07c6c25 commit b27c96d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion linker/packages/bench/bin/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function runBench(variant: ParserVariant, file: LoadedFile): number {
const warmupIterations = 5;
const benchIterations = 20;

// TODO try e.g. TinyBench instead
// TODO Use Deno.bench instead

/* warmup */
runNTimes(warmupIterations, variant, file);
Expand Down
2 changes: 1 addition & 1 deletion linker/packages/linker/src/AbstractElems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export interface ParenthesizedExpression extends AbstractElemBase {
}
export interface ComponentExpression extends AbstractElemBase {
kind: "component-expression";
// TODO: How do I safely type this? As in, I want "first comes the name, then the component"
// To safely type this, don't use contents, but rather define your own props!
contents: [ExpressionElem, ExpressionElem];
}
// TODO: We will emit these very soon (for the @if(expr))
Expand Down
3 changes: 1 addition & 2 deletions linker/packages/linker/src/BindIdents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ function findExport(
modulePathParts: string[],
parsed: ParsedRegistry,
): DeclIdent | undefined {
const legacyConvert = modulePathParts.map(p => (p === "." ? "package" : p)); // TODO rm after we update grammar
const modulePath = legacyConvert.slice(0, -1).join("::");
const modulePath = modulePathParts.slice(0, -1).join("::");

This comment has been minimized.

Copy link
@mighdoll

mighdoll Feb 8, 2025

Contributor

yea! so glad to see this cruft go, and get a TODO crossed off too

const module = parsed.modules[modulePath];
if (!module) {
// TODO show error with source location
Expand Down

0 comments on commit b27c96d

Please sign in to comment.