Inlay hints: docs

GitOrigin-RevId: 4eefd96cf6523d3c253f7bef12b00d6b661a5976
This commit is contained in:
Roman.Ivanov
2019-06-14 13:31:26 +03:00
committed by intellij-monorepo-bot
parent ddc0b9453f
commit efcffb291a
@@ -6,14 +6,14 @@ import com.intellij.codeInsight.hints.presentation.InlayPresentation
interface InlayHintsSink {
/**
* Adds inline element to underlying editor.
* Note, that only one presentation with the given key may be at the same offset.
* Note, that single provider may add only one presentation to the given offset (no matter inline or block). This requirement may be relaxed in future.
* @see [com.intellij.openapi.editor.InlayModel.addInlineElement]
*/
fun addInlineElement(offset: Int, relatesToPrecedingText: Boolean, presentation: InlayPresentation)
/**
* Adds block element to underlying editor.
* Note, that only one presentation with the given key may be at the same offset.
* Note, that single provider may add only one presentation to the given offset (no matter inline or block). This requirement may be relaxed in future.
* @see [com.intellij.openapi.editor.InlayModel.addBlockElement]
*/
fun addBlockElement(offset: Int, relatesToPrecedingText: Boolean, showAbove: Boolean, priority: Int, presentation: InlayPresentation)