Stub for analyzing type specifiers

This commit is contained in:
Sasha Koshka 2022-09-20 11:01:56 -04:00
parent 92ac258dbe
commit b3ebd7a259
2 changed files with 18 additions and 4 deletions

View File

@ -40,6 +40,7 @@ func (analyzer AnalysisOperation) analyzeTypeSection () (
outputSection.where = analyzer.currentPosition outputSection.where = analyzer.currentPosition
outputSection.what, err = analyzer.analyzeType(inputSection.Type()) outputSection.what, err = analyzer.analyzeType(inputSection.Type())
if err != nil { return }
outputSection.complete = true outputSection.complete = true
return return

View File

@ -1,6 +1,7 @@
package analyzer package analyzer
import "git.tebibyte.media/arf/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/arf/arf/parser"
// TypeKind represents what kind of type a type is. // TypeKind represents what kind of type a type is.
type TypeKind int type TypeKind int
@ -28,8 +29,7 @@ type ObjectMember struct {
// how many members objects have. // how many members objects have.
permission types.Permission permission types.Permission
// TODO: create argument type similar to what's in the parser and have what Type
// a defaultValue member here.
} }
func (member ObjectMember) ToString (indent int) (output string) { func (member ObjectMember) ToString (indent int) (output string) {