create_context


Description:

public unowned SourceCompletionContext create_context (TextIter? position)

Create a new SourceCompletionContext for this.

The position where the completion occurs can be specified by position. If position is null, the current cursor position will be used.

Parameters:

this

a SourceCompletion.

position

a TextIter, or null.

Returns:

a new SourceCompletionContext. The reference being returned is a 'floating' reference, so if you invoke show with this context you don't need to unref it.