Removed struct keyword
This commit is contained in:
parent
42e7c8a306
commit
1a2c21de15
18 changed files with 44 additions and 40 deletions
|
@ -60,7 +60,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
|||
}
|
||||
|
||||
if paramsStart == -1 {
|
||||
return nil, i, errors.New(errors.ExpectedFunctionParameters, file, tokens[i].Position)
|
||||
return nil, i, errors.New(errors.InvalidDefinition, file, tokens[i].Position)
|
||||
}
|
||||
|
||||
return nil, i, nil
|
||||
|
@ -71,7 +71,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
|||
continue
|
||||
}
|
||||
|
||||
return nil, i, errors.New(errors.ExpectedFunctionParameters, file, tokens[i].Position)
|
||||
return nil, i, errors.New(errors.InvalidDefinition, file, tokens[i].Position)
|
||||
}
|
||||
|
||||
// Return type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue