File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ abstract class Driver extends DotClass {
24
24
catch {
25
25
case ex : FatalError =>
26
26
ctx.error(ex.getMessage) // signals that we should fail compilation.
27
- ctx.typerState. reporter
27
+ ctx.reporter
28
28
}
29
29
else emptyReporter
30
30
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class Resident extends Driver {
47
47
nextCtx = rootCtx
48
48
line = getLine()
49
49
}
50
- if (line.startsWith(quit)) ctx.typerState. reporter
50
+ if (line.startsWith(quit)) ctx.reporter
51
51
else loop(line split " \\ s+" , nextCtx)
52
52
}
53
53
loop(args, rootCtx)
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class Run(comp: Compiler)(implicit ctx: Context) {
84
84
/** Print summary; return # of errors encountered */
85
85
def printSummary (): Reporter = {
86
86
ctx.runInfo.printMaxConstraint()
87
- val r = ctx.typerState. reporter
87
+ val r = ctx.reporter
88
88
r.printSummary
89
89
r
90
90
}
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class TreeChecker extends Phase with SymTransformer {
118
118
val squahsedPhase = ctx.squashed(prevPhase)
119
119
ctx.println(s " checking ${ctx.compilationUnit} after phase ${squahsedPhase}" )
120
120
val checkingCtx = ctx.fresh
121
- .setTyperState(ctx.typerState.withReporter(new ThrowingReporter (ctx.typerState. reporter)))
121
+ .setTyperState(ctx.typerState.withReporter(new ThrowingReporter (ctx.reporter)))
122
122
val checker = new Checker (previousPhases(phasesToRun.toList)(ctx))
123
123
try checker.typedExpr(ctx.compilationUnit.tpdTree)(checkingCtx)
124
124
catch {
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ trait Applications extends Compatibility { self: Typer =>
153
153
154
154
def ok = _ok
155
155
def ok_= (x : Boolean ) = {
156
- assert(x || ctx.errorsReported || ! ctx.typerState.isCommittable) // !!! DEBUG
156
+ assert(x || ctx.reporter. errorsReported || ! ctx.typerState.isCommittable) // !!! DEBUG
157
157
_ok = x
158
158
}
159
159
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ trait Implicits { self: Typer =>
495
495
case _ => false
496
496
}
497
497
}
498
- if (ctx.typerState. reporter.hasErrors)
498
+ if (ctx.reporter.hasErrors)
499
499
nonMatchingImplicit(ref)
500
500
else if (contextual && ! ctx.mode.is(Mode .ImplicitShadowing ) &&
501
501
! shadowing.tpe.isError && ! refMatches(shadowing)) {
You can’t perform that action at this time.
0 commit comments