Skip to content

Commit

Permalink
Add variable declaration attributes for filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
shivasurya committed May 7, 2024
1 parent eb6c6a1 commit d39a143
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sourcecode-parser/source_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ func (gnc *GraphNodeContext) GetValue(key, val string) string {
}
}
return ""
case "scope":
return gnc.Node.Scope
case "variablevalue":
return gnc.Node.VariableValue
case "variabledatatype":
return gnc.Node.DataType
default:
fmt.Printf("Unsupported attribute key: %s\n", key)
return ""
Expand Down

0 comments on commit d39a143

Please sign in to comment.