Closed viper-admin closed 4 years ago
@arquintl commented on 2020-07-17 12:37
This PR is now ready to be reviewed
@Felalolf commented on 2020-08-11 12:09
Location: line 67 of
src/main/scala/viper/gobra/frontend/info/Info.scala
Why can errors occur multiple times?
@Felalolf commented on 2020-08-11 12:30
Location: line 179 of
src/main/scala/viper/gobra/frontend/info/implementation/resolution/MemberResolution.scala
What would happen, if you replace
info <- Info.check(parsedProgram, context)(config)
with
info <- Right(new TypeInfoImpl(new GoTree(parsedProgram), context)(config))
(i.e. just not call .errors on the TypeInfo Object)?
@Felalolf commented on 2020-08-11 12:40
Outdated location: line 198 of
src/main/scala/viper/gobra/frontend/info/implementation/resolution/MemberResolution.scala
you are computing alternativeErr, regardless of whether it is actually required or not.
@Felalolf commented on 2020-08-11 12:41
I went over it once
@arquintl commented on 2020-08-31 09:52
Location: line 67 of
src/main/scala/viper/gobra/frontend/info/Info.scala
Why can errors occur multiple times?
// consider this: each error in an imported package is converted to an error at the import node with
// message 'Package <pkg name> contains errors'. If the imported package contains 2 errors then only a single error
// should be reported at the import node instead of two.
I’ve added this to the souce file
@arquintl commented on 2020-08-31 10:02
Location: line 179 of
src/main/scala/viper/gobra/frontend/info/implementation/resolution/MemberResolution.scala
What would happen, if you replace
info <- Info.check(parsedProgram, context)(config)
with
info <- Right(new TypeInfoImpl(new GoTree(parsedProgram), context)(config))
(i.e. just not call .errors on the TypeInfo Object)?
I get an violation for UnknownType in typeD in the desugarer when desugaring the imported package and the imported package does not type
@arquintl commented on 2020-08-31 10:04
Outdated location: line 198 of
src/main/scala/viper/gobra/frontend/info/implementation/resolution/MemberResolution.scala
you are computing alternativeErr, regardless of whether it is actually required or not.
fixed
@Felalolf approved :heavy_check_mark: the pull request on 2020-09-01 14:07
A type error is shown at the import statement in the following cases:
There is only a differentiation between not finding any source files for the package and parse & type errors. To get the specific errors one has to compile/verify the erroneous package itself
Depends on https://github.com/viperproject/gobra/pull/67