Added more methods to the section interface

This commit is contained in:
Sasha Koshka 2022-09-04 14:04:48 -04:00
parent ded0ce58ec
commit d930e72c0c
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package parser
import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/arf/arf/types"
// SyntaxTree represents an abstract syntax tree. It covers an entire module. It
// can be expected to be syntactically correct, but it might not be semantically
@ -33,7 +34,10 @@ const (
// Section can be any kind of section. You can find out what type of section it
// is with the Kind method.
type Section interface {
Kind () (kind SectionKind)
Location () (location file.Location)
Kind () (kind SectionKind)
Permission () (permission types.Permission)
Name () (name string)
}
// Identifier represents a chain of arguments separated by a dot.