Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Use context for error reporting. #8

Merged
merged 2 commits into from
Sep 16, 2014
Merged

Use context for error reporting. #8

merged 2 commits into from
Sep 16, 2014

Conversation

adriaanm
Copy link
Contributor

@adriaanm adriaanm commented Jul 7, 2014

unit.error is both deprecated and wrong during type checking, since it goes straight to the reporter, without considering silent mode

review by @retronym

@adriaanm
Copy link
Contributor Author

adriaanm commented Jul 7, 2014

See scala/scala#3868 (comment)

@retronym
Copy link
Member

retronym commented Jul 7, 2014

LGTM

@adriaanm
Copy link
Contributor Author

adriaanm commented Jul 7, 2014

My bad -- some of these run after typer of course.

@adriaanm
Copy link
Contributor Author

adriaanm commented Jul 7, 2014

A nice illustration that we should use Reporter more uniformly, with typer.context's reporting buffering as needed. Currently, we don't have an abstraction for reporting errors both through global.reporter and typer.context...

`unit.reporter` simply forwards to `global.reporter`,
so use that one instead. Use `typer.context.error`
where silent mode should be respected (i.e., during type checking).
sumito3478 added a commit to sumito3478/scala-continuations that referenced this pull request Sep 8, 2014
This commit adds -deprecation and -feature to scalacOptions and fix source code to avoid deprecation/feature warnings.
Since scala#8 is already working on the usages of deprecated CompilationUnit, this commit does not fix them.
@retronym
Copy link
Member

LGTM

retronym added a commit that referenced this pull request Sep 16, 2014
Use context for error reporting.
@retronym retronym merged commit 48590fe into scala:master Sep 16, 2014
sumito3478 added a commit to sumito3478/scala-continuations that referenced this pull request Sep 16, 2014
This commit adds -deprecation and -feature to scalacOptions and fix source code to avoid deprecation/feature warnings.
Since scala#8 is already working on the usages of deprecated CompilationUnit, this commit does not fix them.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants