Fixed TypeMember.ToString
Type section now passes test
This commit is contained in:
parent
2a1e8c5df7
commit
f1cd9856ea
@ -122,7 +122,7 @@ func (member TypeMember) ToString (indent int, breakLine bool) (output string) {
|
|||||||
|
|
||||||
output += member.permission.ToString() + " "
|
output += member.permission.ToString() + " "
|
||||||
output += member.name + ":"
|
output += member.name + ":"
|
||||||
output += member.what.ToString(indent, breakLine)
|
output += member.what.ToString(indent + 1, breakLine)
|
||||||
|
|
||||||
if member.bitWidth > 0 {
|
if member.bitWidth > 0 {
|
||||||
output += fmt.Sprint(" & ", member.bitWidth)
|
output += fmt.Sprint(" & ", member.bitWidth)
|
||||||
@ -427,7 +427,7 @@ func (phrase Phrase) ToString (indent int, ownLine bool) (output string) {
|
|||||||
output += "\n"
|
output += "\n"
|
||||||
output += phrase.block.ToString(indent + 1)
|
output += phrase.block.ToString(indent + 1)
|
||||||
} else if len(phrase.block) > 0 {
|
} else if len(phrase.block) > 0 {
|
||||||
output += "NON BLOCKLEVEL PHRASE HAS BLOCK"
|
output += "NON-BLOCK-LEVEL-PHRASE-HAS-BLOCK"
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -26,13 +26,18 @@ type ro dInitInherit:aBasic:
|
|||||||
.that:<9384>
|
.that:<9384>
|
||||||
.this:<389>
|
.this:<389>
|
||||||
)
|
)
|
||||||
type ro cInitAndDefine:aBasic:
|
type ro eInitAndDefine:aBasic:
|
||||||
(
|
(
|
||||||
.ro these:aBasic:
|
.ro these:aBasic:
|
||||||
(
|
(
|
||||||
.ro born:Int:<4>
|
.ro born:Int:<4>
|
||||||
.ro in:Int
|
.ro in:Int
|
||||||
.ro the:Int:3:<9348 92384 92834>
|
.ro the:Int:3:
|
||||||
|
<
|
||||||
|
9348
|
||||||
|
92384
|
||||||
|
92834
|
||||||
|
>
|
||||||
):
|
):
|
||||||
(
|
(
|
||||||
.this:<98>
|
.this:<98>
|
||||||
|
Reference in New Issue
Block a user