Skip to content

Commit

Permalink
formatNode instead of formatPlace and formatTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Nov 16, 2023
1 parent 153a551 commit 4d5b931
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
formatTransition

findTransition & findTransitionEntryOrFail

connectTransitionToInputs & connectTransitionToOutputs
Expand Down
5 changes: 3 additions & 2 deletions src/lang/net/findPlaceEntryOrFail.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Place, formatPlace } from "../place"
import { formatNode } from "../node"
import { Place } from "../place"
import { Net, PlaceEntry } from "./Net"
import { findPlaceEntry } from "./findPlaceEntry"

Expand All @@ -9,7 +10,7 @@ export function findPlaceEntryOrFail(net: Net, place: Place): PlaceEntry {
[
`[findPlaceEntryOrFail] I can not find nodeEntry for node.`,
``,
` place: ${formatPlace(net, place)}`,
` place: (${formatNode(net, place)})`,
].join("\n"),
)
}
Expand Down
1 change: 1 addition & 0 deletions src/lang/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from "./formatNode"
export * from "./nodeEqual"
export * from "./nodeKey"
export * from "./nodeKeyWithoutId"
export * from "./formatNode"
8 changes: 0 additions & 8 deletions src/lang/place/formatPlace.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/lang/place/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./Place"
export * from "./formatPlace"

0 comments on commit 4d5b931

Please sign in to comment.