Added more methods to the section interface
This commit is contained in:
parent
ded0ce58ec
commit
d930e72c0c
@ -1,6 +1,7 @@
|
|||||||
package parser
|
package parser
|
||||||
|
|
||||||
import "git.tebibyte.media/arf/arf/file"
|
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
|
// 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
|
// 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
|
// Section can be any kind of section. You can find out what type of section it
|
||||||
// is with the Kind method.
|
// is with the Kind method.
|
||||||
type Section interface {
|
type Section interface {
|
||||||
|
Location () (location file.Location)
|
||||||
Kind () (kind SectionKind)
|
Kind () (kind SectionKind)
|
||||||
|
Permission () (permission types.Permission)
|
||||||
|
Name () (name string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identifier represents a chain of arguments separated by a dot.
|
// Identifier represents a chain of arguments separated by a dot.
|
||||||
|
Reference in New Issue
Block a user