Skip to content

Commit

Permalink
Fix case in symbol name
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed May 13, 2024
1 parent f3f8c09 commit a5f158e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func void Symbol11(var int Symbol12, var string Symbol13, var Symbol5 Symbol14)
{ name: 'SYMBOL11.SYMBOL3', file: 'file.d', line: 29 },
{ name: 'SYMBOL11.SYMBOL4', file: 'file.d', line: 30 },
{ name: 'SYMBOL11.SYMBOL21.SYMBOL6', file: 'file.d', line: 32 },
{ name: 'Symbol11', file: 'file.d', line: 33 },
{ name: 'SYMBOL11', file: 'file.d', line: 33 },
{ name: 'SYMBOL11.SYMBOL15', file: 'file.d', line: 33 },
])
})
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class SymbolVisitor extends DaedalusVisitor<Tables> {
}

public visitFuncCall = (ctx: FuncCallContext): Tables => {
const name = ctx.nameNode().anyIdentifier().Identifier()?.getSymbol()?.text
const name = ctx.nameNode().anyIdentifier().Identifier()?.getSymbol()?.text?.toUpperCase()
if (name) {
// istanbul ignore next: Unnecessary to test empty line
const line = ctx.start?.line ?? 0
Expand Down

0 comments on commit a5f158e

Please sign in to comment.