scala.meta.internal.pc.Completions.CompletionPosition
The string literal, includes an instrumented _CURSOR_
that we need to handle.
The offset position of the cursor, right below @@_CURSOR_
.
Metadata about this interpolation, the location of the leading dollar character and whether the completed name needs to be wrapped in curly braces.
The text of the original source code without the instrumented _CURSOR_
.
Returns ordering between two candidate completions.
Returns ordering between two candidate completions.
- negative number if o1 member should be sorted before o2 - positive number if o2 member should be sorted before o1 - zero 0 if o1 and o2 are equal
Returns true if this member should be sorted at the top of completion items.
Returns true if this member should be sorted at the top of completion items.
Metadata about this interpolation, the location of the leading dollar character and whether the completed name needs to be wrapped in curly braces.
Returns false if this member should be excluded from completion items.
Returns false if this member should be excluded from completion items.
The string literal, includes an instrumented _CURSOR_
that we need to handle.
The offset position of the cursor, right below @@_CURSOR_
.
The text of the original source code without the instrumented _CURSOR_
.
A completion to convert a string literal into a string literal, example
"Hello $na@@"
.When converting a string literal into an interpolator we need to ensure a few cases:
- escape existing
$
characters into$$
, which are printed as$$
in order to escape the TextMate snippet syntax. - wrap completed name in curly bracess"Hello ${name}_
when the trailing character can be treated as an identifier part. - insert the leadings
interpolator. - place the cursor at the end of the completed name using TextMate$0
snippet syntax.The string literal, includes an instrumented
_CURSOR_
that we need to handle.The offset position of the cursor, right below
@@_CURSOR_
.Metadata about this interpolation, the location of the leading dollar character and whether the completed name needs to be wrapped in curly braces.
The text of the original source code without the instrumented
_CURSOR_
.