Skip to content

Commit

Permalink
ambr GenrateSymbol GenerateSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Sep 13, 2023
1 parent 1a01616 commit 8c63987
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lang/compose/compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function compose(
return null
}

case "GenrateSymbol": {
case "GenerateSymbol": {
env.stack.push({
"@type": "Value",
"@kind": "Symbol",
Expand Down
2 changes: 1 addition & 1 deletion src/lang/syntax/matchers/word_matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function word_matcher(tree: pt.Tree): Word {
}),
"word:generate_type_var": ({ name }, { span }) => ({
"@type": "Word",
"@kind": "GenrateSymbol",
"@kind": "GenerateSymbol",
name: pt.str(name),
span,
}),
Expand Down
6 changes: 3 additions & 3 deletions src/lang/word/Word.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type Word =
| Local
| PortPush
| PortReconnect
| GenrateSymbol
| GenerateSymbol
| Label

export type Call = {
Expand Down Expand Up @@ -54,9 +54,9 @@ export type PortReconnect = {
span: Span
}

export type GenrateSymbol = {
export type GenerateSymbol = {
"@type": "Word"
"@kind": "GenrateSymbol"
"@kind": "GenerateSymbol"
name: string
span: Span
}
Expand Down
2 changes: 1 addition & 1 deletion src/lang/word/formatWord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function formatWord(word: Word): string {
return `${word.portName}-(${word.nodeName})`
}

case "GenrateSymbol": {
case "GenerateSymbol": {
return `'${word.name}`
}

Expand Down

0 comments on commit 8c63987

Please sign in to comment.