Skip to content

Commit

Permalink
extract copyNode
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Aug 16, 2023
1 parent 5a680ca commit 99bc79d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# connected component

clonePortRecord
`clonePortRecord`

clonePortEntry
`clonePortEntry`

`copyNode`

Expand Down
6 changes: 1 addition & 5 deletions src/lang/net/copyConnectedComponent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Node } from "../node"
import { Net } from "./Net"
import { copyNode } from "./copyNode"
import { findPortRecordOrFail } from "./findPortRecordOrFail"
import { hasNode } from "./hasNode"

Expand All @@ -21,8 +22,3 @@ export function copyConnectedComponent(
}
}
}

export function copyNode(source: Net, target: Net, node: Node): void {
const portRecord = findPortRecordOrFail(source, node)
//
}
8 changes: 8 additions & 0 deletions src/lang/net/copyNode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Node } from "../node"
import { Net } from "./Net"
import { findPortRecordOrFail } from "./findPortRecordOrFail"

export function copyNode(source: Net, target: Net, node: Node): void {
const portRecord = findPortRecordOrFail(source, node)
//
}

0 comments on commit 99bc79d

Please sign in to comment.