Added bit fields to tree and ToString for object member

This commit is contained in:
2022-08-24 18:22:47 -04:00
parent b64fbd9fc4
commit fb43f96acc
2 changed files with 9 additions and 2 deletions

View File

@@ -297,6 +297,10 @@ func (member ObjtMember) ToString (indent int) (output string) {
output += member.permission.ToString() + " "
output += member.name + ":"
output += member.what.ToString()
if member.bitWidth > 0 {
output += fmt.Sprint(":", member.bitWidth)
}
isComplexInitialization :=
member.defaultValue.kind == ArgumentKindObjectInitializationValues ||