Skip to content

Commit

Permalink
fix: fix identifier issues for archguard/archguard#108
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jul 7, 2022
1 parent 09fe5f6 commit 28cc9a8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {

// see also in arrow function declaration
override fun enterFunctionDeclaration(ctx: TypeScriptParser.FunctionDeclarationContext?) {
val funcName = ctx!!.Identifier().text
if(ctx == null) return
if(ctx.Identifier() == null) return

val funcName = ctx.Identifier().text
val func = CodeFunction(FilePath = filePath)
func.Name = funcName

Expand Down

0 comments on commit 28cc9a8

Please sign in to comment.