Skip to content

Commit cf9883f

Browse files
committed
remove some more unnecessary uses of .nn
1 parent 7951635 commit cf9883f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

presentation-compiler/src/main/dotty/tools/pc/CompilerSearchVisitor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CompilerSearchVisitor(
1919
)(using ctx: Context, reports: ReportContext)
2020
extends SymbolSearchVisitor:
2121

22-
val logger: Logger = Logger.getLogger(classOf[CompilerSearchVisitor].getName().nn).nn
22+
val logger: Logger = Logger.getLogger(classOf[CompilerSearchVisitor].getName()).nn
2323

2424
private def isAccessibleImplicitClass(sym: Symbol) =
2525
val owner = sym.maybeOwner

presentation-compiler/src/main/dotty/tools/pc/SignatureHelpProvider.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ object SignatureHelpProvider:
8484
case Some(paramDoc) =>
8585
val newName =
8686
if isJavaSymbol && head.name.startsWith("x$") then
87-
paramDoc.nn.displayName()
87+
paramDoc.displayName()
8888
else head.name
8989
head.copy(name = newName.nn, doc = Some(paramDoc.docstring.nn)) :: rest
9090
case _ => head :: rest

presentation-compiler/src/main/dotty/tools/pc/completions/CompletionPos.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object CompletionPos:
6262
CompletionPos(
6363
start,
6464
identEnd,
65-
query.nn,
65+
query,
6666
sourcePos,
6767
offsetParams.uri.nn,
6868
wasCursorApplied,

presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class CompletionProvider(
174174
*/
175175
private def applyCompletionCursor(params: OffsetParams): (Boolean, String) =
176176
val text = params.text().nn
177-
val offset = params.offset().nn
177+
val offset = params.offset()
178178
val query = Completion.naiveCompletionPrefix(text, offset)
179179

180180
if offset > 0 && text.charAt(offset - 1).isUnicodeIdentifierPart

0 commit comments

Comments
 (0)