Ok yeah there I fixed it

This commit is contained in:
Sasha Koshka 2022-10-13 16:11:12 -04:00
parent 5463435fae
commit bfdca9ed16
2 changed files with 4 additions and 7 deletions

View File

@ -266,14 +266,11 @@ func (analyzer analysisOperation) analyzeType (
return
}
actualIsValidSectionKind := false
switch actual.(type) {
// TODO: uncomment once these sections are implemented
case *TypeSection /* , *EnumSection, *FaceSection */:
actualIsValidSectionKind = true
}
if !actualIsValidSectionKind {
outputType.actual = actual
default:
err = inputType.NewError (
"this must refer to a type, interface, or enum",
infoerr.ErrorKindError)

View File

@ -43,7 +43,7 @@ func (location *Location) SetWidth (width int) {
func (location Location) Describe () (description string) {
return fmt.Sprint (
"in ", location.file.Path(),
" row ", location.row,
" column ", location.column,
" row ", location.row + 1,
" column ", location.column + 1,
" width ", location.width)
}