add_provider


Description:

public bool add_provider (SourceCompletionProvider provider) throws Error

Add a new SourceCompletionProvider to the completion object.

This will add a reference provider, so make sure to unref your own copy when you no longer need it.

Parameters:

this

a SourceCompletion.

provider

a SourceCompletionProvider.

Returns:

true if provider was successfully added, otherwise if throws is provided, it will be set with the error and false is returned.