Did the same thing to interfaces
This commit is contained in:
parent
715766edb4
commit
c470997887
@ -32,7 +32,7 @@ func (parser *ParsingOperation) parseFaceSection () (
|
|||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
err = parser.nextToken(lexer.TokenKindName)
|
err = parser.nextToken(lexer.TokenKindName)
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
section.inherits = parser.token.Value().(string)
|
section.inherits, err = parser.parseIdentifier()
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
err = parser.nextToken(lexer.TokenKindNewline)
|
err = parser.nextToken(lexer.TokenKindNewline)
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
|
@ -367,7 +367,7 @@ func (section *FaceSection) ToString (indent int) (output string) {
|
|||||||
"face ",
|
"face ",
|
||||||
section.permission.ToString(), " ",
|
section.permission.ToString(), " ",
|
||||||
section.name, ":",
|
section.name, ":",
|
||||||
section.inherits, "\n")
|
section.inherits.ToString(), "\n")
|
||||||
|
|
||||||
for _, name := range sortMapKeysAlphabetically(section.behaviors) {
|
for _, name := range sortMapKeysAlphabetically(section.behaviors) {
|
||||||
behavior := section.behaviors[name]
|
behavior := section.behaviors[name]
|
||||||
|
@ -190,7 +190,6 @@ type ObjtSection struct {
|
|||||||
location file.Location
|
location file.Location
|
||||||
name string
|
name string
|
||||||
|
|
||||||
// TODO: make this Identifier instead of Type
|
|
||||||
inherits Identifier
|
inherits Identifier
|
||||||
permission types.Permission
|
permission types.Permission
|
||||||
// TODO: order matters here we need to store these in an array
|
// TODO: order matters here we need to store these in an array
|
||||||
@ -226,8 +225,7 @@ type FaceBehavior struct {
|
|||||||
type FaceSection struct {
|
type FaceSection struct {
|
||||||
location file.Location
|
location file.Location
|
||||||
name string
|
name string
|
||||||
// TODO: make this Identifier instead of string
|
inherits Identifier
|
||||||
inherits string
|
|
||||||
|
|
||||||
permission types.Permission
|
permission types.Permission
|
||||||
behaviors map[string] FaceBehavior
|
behaviors map[string] FaceBehavior
|
||||||
|
Reference in New Issue
Block a user