Skip to content

Commit

Permalink
Merge pull request #20 from shivasurya/shiva/variable-attribute
Browse files Browse the repository at this point in the history
Add variable declaration attributes for filtering
  • Loading branch information
shivasurya authored May 7, 2024
2 parents eb6c6a1 + d39a143 commit bfb80b9
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 bfb80b9

Please sign in to comment.