Skip to content

Commit

Permalink
Merge pull request #15542 from tgodzik/guard-against-empty
Browse files Browse the repository at this point in the history
Add a guard against empty ident
  • Loading branch information
tgodzik authored Jun 28, 2022
2 parents a1157db + 8348386 commit 65a86ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ object Scala3:
unicodeEscape.replaceAllIn(symbol, m => String.valueOf(Integer.parseInt(m.group(1), 16).toChar).nn)

def isJavaIdent =
isJavaIdentifierStart(symbol.head) && symbol.tail.forall(isJavaIdentifierPart)
symbol.nonEmpty && isJavaIdentifierStart(symbol.head) && symbol.tail.forall(isJavaIdentifierPart)
end StringOps

given InfoOps: AnyRef with
Expand Down

0 comments on commit 65a86ae

Please sign in to comment.