Ok yeah there I fixed it
This commit is contained in:
parent
5463435fae
commit
bfdca9ed16
@ -266,14 +266,11 @@ func (analyzer analysisOperation) analyzeType (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
actualIsValidSectionKind := false
|
|
||||||
switch actual.(type) {
|
switch actual.(type) {
|
||||||
// TODO: uncomment once these sections are implemented
|
// TODO: uncomment once these sections are implemented
|
||||||
case *TypeSection /* , *EnumSection, *FaceSection */:
|
case *TypeSection /* , *EnumSection, *FaceSection */:
|
||||||
actualIsValidSectionKind = true
|
outputType.actual = actual
|
||||||
}
|
default:
|
||||||
|
|
||||||
if !actualIsValidSectionKind {
|
|
||||||
err = inputType.NewError (
|
err = inputType.NewError (
|
||||||
"this must refer to a type, interface, or enum",
|
"this must refer to a type, interface, or enum",
|
||||||
infoerr.ErrorKindError)
|
infoerr.ErrorKindError)
|
||||||
|
@ -43,7 +43,7 @@ func (location *Location) SetWidth (width int) {
|
|||||||
func (location Location) Describe () (description string) {
|
func (location Location) Describe () (description string) {
|
||||||
return fmt.Sprint (
|
return fmt.Sprint (
|
||||||
"in ", location.file.Path(),
|
"in ", location.file.Path(),
|
||||||
" row ", location.row,
|
" row ", location.row + 1,
|
||||||
" column ", location.column,
|
" column ", location.column + 1,
|
||||||
" width ", location.width)
|
" width ", location.width)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user