Skip to content

Commit

Permalink
Generate dev-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Dec 4, 2024
1 parent 6e5def0 commit 1244c75
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: "Build Demo Website"
run: bun build-demo

- name: "Build docs"
run: bun typedocs --out ./dist/demo/devdocs

- uses: actions/upload-pages-artifact@v3
with:
path: ./dist/demo
Expand Down
7 changes: 7 additions & 0 deletions docs/Development.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
title: Development
group: Documents
category: Guides
---


# Development

These are instructions for developing this project.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"oxlint-ci": "bunx oxlint --ignore-pattern=\"*.svelte\" -D correctness -D perf -D suspicious -A no-await-in-loop",
"lint": "bunx biome check --fix && bun oxlint-fix && bunx eslint --fix && bunx tsc --noEmit",
"ci": "bunx biome ci && bun oxlint-ci && bunx eslint && bunx tsc --noEmit",
"generate-parsers": "bun run ./scripts/generate-parsers.ts"
"generate-parsers": "bun run ./scripts/generate-parsers.ts",
"typedoc": "bunx typedoc --treatWarningsAsErrors"
},
"//": "START EXTENSION ATTRIBUTES",
"publisher": "tamir-bahar",
Expand Down
6 changes: 3 additions & 3 deletions src/control-flow/generic-cfg-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { NodeMapper } from "./node-mapper";
import { pairwise } from "./zip";

interface Dispatch {
export interface Dispatch {
/**
* Process a single AST node into a basic block
* @param syntax
Expand All @@ -23,7 +23,7 @@ interface Dispatch {
*/
many(statements: Parser.SyntaxNode[]): BasicBlock;
}
interface Link {
export interface Link {
syntaxToNode: InstanceType<typeof NodeMapper>["linkSyntaxToNode"];
offsetToSyntax: InstanceType<typeof NodeMapper>["linkOffsetToSyntax"];
}
Expand All @@ -43,7 +43,7 @@ export interface Context {
* @param {Context} ctx - The context in which the statement is being handled
* @returns {BasicBlock} A basic block representation of the AST node
*/
type StatementHandler = (syntax: Parser.SyntaxNode, ctx: Context) => BasicBlock;
export type StatementHandler = (syntax: Parser.SyntaxNode, ctx: Context) => BasicBlock;
/**
* Maps AST nodes to their matching `StatementHandler` functions.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/control-flow/graph-ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function collapseNode(
}
/**
*
* @param graph The graph to simplify
* @param cfg The graph to simplify
*/
export function simplifyCFG(cfg: CFG, mergeAttrs?: AttrMerger): CFG {
const graph = cfg.graph.copy();
Expand Down

0 comments on commit 1244c75

Please sign in to comment.