From d930e72c0c3644bb6d9575fbf1da6137efe51296 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 4 Sep 2022 14:04:48 -0400 Subject: [PATCH] Added more methods to the section interface --- parser/tree.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parser/tree.go b/parser/tree.go index e505028..707f201 100644 --- a/parser/tree.go +++ b/parser/tree.go @@ -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.