Table of Contents

Class CodeCompletionRepository

Namespace
Alternet.Syntax.CodeCompletion
Assembly
Alternet.Syntax.v9.dll

Represents properties and methods to perform code completion functionality.

public class CodeCompletionRepository : ICodeCompletionRepository, IDisposable
Inheritance
CodeCompletionRepository
Implements
Derived

Constructors

CodeCompletionRepository(bool, ISyntaxTree)

Initializes a new instance of the CodeCompletionRepository class with specified parameters.

Properties

AlphaImages

Gets Alpha ImageList attached to this CodeCompletionRepository.

AlphaImagesHighDpi

Gets Alpha ImageList attached to this CodeCompletionRepository for high DPI.

CaseSensitive

Indicates whether searching for language element's members should be case sensitive.

DisplayScaledAlphaImages
DisplayScaledImages
FillBaseMembers

Indicates whether members of Object class should be present in the member collection.

Images

Gets ImageList attached to this CodeCompletionRepository.

ImagesHighDpi

Gets ImageList attached to this CodeCompletionRepository for high DPI.

ImagesResourceNameSuffix

When implemented by a class, gets or sets the image resource name suffix.

ScaledAlphaImages

Gets scaled Alpha ImageList attached to this CodeCompletionRepository for high DPI.

ScaledImages

Gets scaled ImageList attached to this CodeCompletionRepository for high DPI.

Snippets

Represents a collection of snippets that are displayed in code completion window.

SyntaxTree

Gets or sets a hierarchical collection of ISyntaxNode elements.

SyntaxTrees

Gets or sets a list of ISyntaxTree objects attached to this CodeCompletionRepository.

Methods

AddMember(IListMembers, IListMember)
AddMember(IListMembers, string, int)
CanAddMember(IListMembers, MemberAttribute, string, int, bool)
ClearListMembers()
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)
DoFillMembers(ISyntaxNode, Point, IListMembers, IList<ISyntaxNode>, object, string, CodeCompletionScope, ref int)
DoFindDeclaration(string, ISyntaxNode, ISyntaxNode, Point, int)
FillMember(IListMembers, object, string, CodeCompletionScope)

Obtains information about individual member of specified language element.

FillMember(IListMembers, object, string, int, CodeCompletionScope)

Obtains information about individual member of specified language element.

FillMembers(ISyntaxNode, Point, IListMembers, object, string, CodeCompletionScope, ref int)

Fills a provider with the members, providing available choices for the specified language element.

~CodeCompletionRepository()

Destroys the instance of the CodeCompletionRepository class.

FindDeclaration(string, ISyntaxNode, Point)

Obtains information about where the language element is declared.

FindReferences(ISyntaxNode, ISyntaxNodes)

Locates all references to the node in the text.

GetCodeSnippets(string)

Returns code snippets for the given language.

GetDescription(IListMembers, ISyntaxNode, object, string, bool)

Obtains description of some language element.

GetDescription(IListMembers, ISyntaxNode, object, string, bool, out string, out int, out int, out Image)
GetMemberKey(string, int)
GetMemberType(ISyntaxNode, Point, object, string, out CodeCompletionScope)

Obtains information about a member of some language element.

GetMemberType(string, ISyntaxNode, ref string, ref Point, ref Point, out CodeCompletionScope)

Obtains information about some language element to perform code completion related operations.

GetMethodType(string, ISyntaxNode, ref string, ref Point, ref Point, out int, out int, out CodeCompletionScope)

Obtains information about some method of specified language element.

GetNodeType(string, ISyntaxNode, Point)

Obtains information type of the SyntaxNode

GetPriority(object)

Obtains priority of the given language element.

Specifies language element
GetQuickInfo(ISyntaxNode)

Returns information about the node.

GetQuickInfo(object)

Returns information about the object.

GetSpecialMemberType(string, ISyntaxNode, ref string, ref Point, ref Point, out CodeCompletionScope)

Obtains information about some language element to perform code completion related operations in special cases.

IsStructureGuideNode(ISyntaxNode, out IRange)

Indicates whether specified ISyntaxNode is guide node.

LoadImages()
OnFillBaseMembersChanged()
RegisterSnippet(string, bool)

When implemented by a class, registers snippet to be displayed in code completion window.

RegisterSyntaxTree(ISyntaxTree)

Adds specified tree to the list of syntax trees for code-completion related purposes.

ShouldDuplicate(IListMembers)
UnregisterSnippet(string)

When implemented by a class, removes specified snippet from the list of snippets.

UnregisterSyntaxTree(ISyntaxTree)

Removes specified tree from the list of syntax trees.

UpdateMembersIndex(IListMembers, int)
UpdateMethodParams(IListMember, int)
UpdateMethodParams(IListMembers, int)

Events

DescriptionLookup

Occurs while trying to obtain description of some language element.

MemberLookup

Occurs while trying to obtain information about some member of language element.