mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
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:
committed by
intellij-monorepo-bot
parent
72008782e5
commit
90816a0e2b
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user