RUST-13045: Support adding deps in fixes and copy paste processor to build dependencies

(cherry picked from commit d5dac84cd6804b517c5e5aff3fc09cfde01bc3c2)

IJ-MR-157157

GitOrigin-RevId: 9b4e749f97441090e100c8895e96e9ba45aa3ab6
This commit is contained in:
konrad.sztenderski
2025-06-13 13:09:39 +00:00
committed by intellij-monorepo-bot
parent 72008782e5
commit 90816a0e2b

View File

@@ -34,6 +34,9 @@ class TomlPsiFactory(private val project: Project, private val markGenerated: Bo
fun createNewline(): PsiElement = createWhitespace("\n")
fun createComma(): PsiElement =
createFromText<TomlInlineTable>("a = { b = 1, c = 2}")?.entries?.firstOrNull()?.nextSibling ?: error("Failed to create comma")
fun createWhitespace(ws: String): PsiElement =
PsiParserFacade.getInstance(project).createWhiteSpaceFromText(ws)