File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ object Parsers {
151
151
/* ------------- ERROR HANDLING ------------------------------------------- */
152
152
153
153
/** The offset of the last time when a statement on a new line was definitely
154
- * encountered in the current scope or an outer scope\
154
+ * encountered in the current scope or an outer scope.
155
155
*/
156
156
private var lastStatOffset = - 1
157
157
@@ -505,7 +505,7 @@ object Parsers {
505
505
if (t1 ne t) t1 else dotSelectors(selector(t), finish)
506
506
}
507
507
508
- /** Dotelectors ::= { `.' ident()
508
+ /** DotSelectors ::= { `.' ident()
509
509
*
510
510
* Accept `.' separated identifiers acting as a selectors on given tree `t`.
511
511
* @param finish An alternative parse in case the token following a `.' is not an identifier.
@@ -521,7 +521,7 @@ object Parsers {
521
521
* | [Ident `.'] this
522
522
*
523
523
* @param thisOK If true, [Ident `.'] this is acceptable as the path.
524
- * If false, another selection is required aftre the `this`.
524
+ * If false, another selection is required after the `this`.
525
525
* @param finish An alternative parse in case the token following a `.' is not an identifier.
526
526
* If the alternative does not apply, its tree argument is returned unchanged.
527
527
*/
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ object Message {
18
18
/** A `Message` contains all semantic information necessary to easily
19
19
* comprehend what caused the message to be logged. Each message can be turned
20
20
* into a `MessageContainer` which contains the log level and can later be
21
- * consumed by a subclass of `Reporter`.
21
+ * consumed by a subclass of `Reporter`. However, the error position is only
22
+ * part of `MessageContainer`, not `Message`.
22
23
*
23
24
* @param errorId a unique number identifying the message, this will later be
24
25
* used to reference documentation online
@@ -31,7 +32,7 @@ abstract class Message(val errorId: Int) { self =>
31
32
* > expected: String
32
33
* > found: Int
33
34
*
34
- * This message wil be placed underneath the position given by the enclosing
35
+ * This message will be placed underneath the position given by the enclosing
35
36
* `MessageContainer`
36
37
*/
37
38
def msg : String
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ object messages {
184
184
185
185
val caseDef = s " case $pat$guard => $body"
186
186
187
- hl """ |For each ${" case" } bound variable names have to be unique. In:
187
+ hl """ |For each ${" case" } bound variable names have to be unique. In:
188
188
|
189
189
| $caseDef
190
190
|
@@ -194,12 +194,14 @@ object messages {
194
194
195
195
case class MissingIdent (tree : untpd.Ident , treeKind : String , name : String )(implicit ctx : Context )
196
196
extends Message (6 ) {
197
- val kind = " Missing Identifier"
197
+ val kind = " Unbound Identifier"
198
198
val msg = em " not found: $treeKind$name"
199
199
200
200
val explanation = {
201
- hl """ |An identifier for ` $treeKind$name` is missing. This means that something
202
- |has either been misspelt or you're forgetting an import """
201
+ hl """ |The identifier for ` $treeKind$name` is not bound, that is,
202
+ |no declaration for this identifier can be found.
203
+ |That can happen for instance if $name or its declaration has either been
204
+ |misspelt, or if you're forgetting an import """
203
205
}
204
206
}
205
207
You can’t perform that action at this time.
0 commit comments