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