From bfdca9ed1675fb7ae5dd68ccff7f7322a3d675b0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 13 Oct 2022 16:11:12 -0400 Subject: [PATCH] Ok yeah there I fixed it --- analyzer/type.go | 7 ++----- file/location.go | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/analyzer/type.go b/analyzer/type.go index f86c9a5..cd31ea8 100644 --- a/analyzer/type.go +++ b/analyzer/type.go @@ -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) diff --git a/file/location.go b/file/location.go index 6b52f5c..fb92989 100644 --- a/file/location.go +++ b/file/location.go @@ -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) }