This repository was archived by the owner on Sep 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
src/compiler/scala/tools/nsc Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ abstract class BCodeSkelBuilder extends BCodeHelpers {
443
443
* which rethrows the caught exception once it's done with the cleanup code.
444
444
*
445
445
* A particular cleanup may in general contain LabelDefs. Care is needed when duplicating such jump-targets,
446
- * so as to preserve agreement wit the (also duplicated) jump-sources.
446
+ * so as to preserve agreement with the (also duplicated) jump-sources.
447
447
* This is achieved based on the bookkeeping provided by two maps:
448
448
* - `labelDefsAtOrUnder` lists all LabelDefs enclosed by a given Tree node (the key)
449
449
* - `labelDef` provides the LabelDef node whose symbol is used as key.
Original file line number Diff line number Diff line change @@ -3031,7 +3031,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
3031
3031
*
3032
3032
* Rationale for this normalization:
3033
3033
* test/files/run/private-inline.scala after -optimize is chock full of
3034
- * BasicBlocks containing just JUMP(whereTo ), where no exception handler straddles them.
3034
+ * BasicBlocks containing just JUMP(whereto ), where no exception handler straddles them.
3035
3035
* They should be collapsed by IMethod.normalize() but aren't.
3036
3036
* That was fine in FJBG times when by the time the exception table was emitted,
3037
3037
* it already contained "anchored" labels (ie instruction offsets were known)
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ abstract class InlineExceptionHandlers extends SubComponent {
343
343
/**
344
344
* This function takes care of duplicating the basic block code for inlining the handler
345
345
*
346
- * Note: This function does not duplicate the same basic block twice. It wil contain a map of the duplicated
346
+ * Note: This function does not duplicate the same basic block twice. It will contain a map of the duplicated
347
347
* basic blocks
348
348
*/
349
349
private def duplicateExceptionHandlerCache (handler : BasicBlock ) =
Original file line number Diff line number Diff line change @@ -168,13 +168,13 @@ trait Contexts { self: Analyzer =>
168
168
* fine grained control is needed based on the kind of error; ambiguity errors are often
169
169
* suppressed during exploratory typing, such as determining whether `a == b` in an argument
170
170
* position is an assignment or a named argument, when `Inferencer#isApplicableSafe` type checks
171
- * applications with and without an expected type, or whtn `Typer#tryTypedApply` tries to fit arguments to
171
+ * applications with and without an expected type, or when `Typer#tryTypedApply` tries to fit arguments to
172
172
* a function type with/without implicit views.
173
173
*
174
- * When the error policies entails error/warning buffering, the mutable [[ReportBuffer ]] records
174
+ * When the error policies entail error/warning buffering, the mutable [[ReportBuffer ]] records
175
175
* everything that is issued. It is important to note, that child Contexts created with `make`
176
176
* "inherit" the very same `ReportBuffer` instance, whereas children spawned through `makeSilent`
177
- * receive an separate, fresh buffer.
177
+ * receive a separate, fresh buffer.
178
178
*
179
179
* @param tree Tree associated with this context
180
180
* @param owner The current owner
You can’t perform that action at this time.
0 commit comments