Table of Contents

Class NETRepository

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

Represents properties and methods to perform code completion functionality for .NET family of languages.

public class NETRepository : CodeCompletionRepository, ICodeCompletionRepository, INETRepository, IDisposable
Inheritance
NETRepository
Implements
Derived

Constructors

NETRepository(bool, ISyntaxTree)

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

Fields

ConstImageDelta

Properties

AllowGlobalMembers

Gets or sets a boolean value indicating whether global members should be included into the code completion.

AlphaImages

Represents collection of alpha images used for code completion.

AlphaImagesHighDpi

Gets Alpha ImageList attached to this CodeCompletionRepository for high DPI.

BaseClassType

Gets or sets name of the base type.

Images

Represents collection of images used for code completion.

ImagesHighDpi

Represents collection of images used for code completion for high DPI.

Namespaces

Represents namespace list.

Objects

Represents object list in a form of key-value pairs.

Methods

AddNetNamespace(IList<INetNamespace>, ISyntaxNode)
AddUndoOperation(string, Point, Point, string, IList<ITextUndo>)
AddUnitMember(IListMembers, ISyntaxNode, string, CodeCompletionScope)
AddUnitNamespaces(ISyntaxNode, IList<INetNamespace>)
CanFilter(IListMembers, ISyntaxNode, string)
CanModify(string, Point, Point, string, out int, out int)
ClearNamespaces()

Clears namespace list.

ClearObjects()

Clears object list.

CombineType(string, string)
ContainsAlpha(string)
ContainsLineContinuation(string)
Dispose(bool)
DoFillMembers(ISyntaxNode, Point, IListMembers, IList<ISyntaxNode>, object, string, CodeCompletionScope, ref int)
DoFindDeclaration(string, ISyntaxNode, ISyntaxNode, Point, int)
FillBaseTypeMembers(IListMembers, IList<ISyntaxNode>, ISyntaxNode, string, CodeCompletionScope, ref int)
FillDeclarations(IListMembers, ISyntaxNode, Point, string, CodeCompletionScope)
FillGlobalObject(IListMembers, string)
FillGlobalObjects(IListMembers)
FillGlobalTypes(IListMembers, IList<INetNamespace>, CodeCompletionScope)
FillMember(IListMembers, INetNamespace)
FillMember(IListMembers, ISyntaxNode, string, CodeCompletionScope)
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(IListMembers, INetNamespace, ISyntaxNode, string, CodeCompletionScope)
FillMembers(IListMembers, ISyntaxNode, Point, string, CodeCompletionScope, bool, ISyntaxNode)
FillMembers(IListMembers, IList<INetNamespace>)
FillMembers(IListMembers, IList<ISyntaxNode>, ISyntaxNode, Point, string, CodeCompletionScope, ref int)
FillNamespaceTypes(IListMembers, INetNamespace, ISyntaxNode, string)
FillNamespaceTypes(IListMembers, ISyntaxNode, string, bool)
FillNamespaceTypes(IListMembers, IList<INetNamespace>, IList<INetNamespace>, string, bool, CodeCompletionScope)
FillSnippet(IListMembers, string, int)
FillSnippets(IListMembers)
FillSnippets(IListMembers, string)
FillSpecialNamespaceType(IListMembers, IList<INetNamespace>, string, CodeCompletionScope)
FillUnitMembers(IListMembers, CodeCompletionScope)
FillXmlNodeMembers(IListMembers, ISyntaxNode, Point, string, ref int)
FindDeclaration(ISyntaxNode, Point, string, CodeCompletionScope, bool)
FindDeclaration(object, IList<ISyntaxNode>, Point, string, CodeCompletionScope, int)
FindDeclarations(ISyntaxNode, Point, string, CodeCompletionScope)
FindMember(string, Point, ISyntaxNode, ISyntaxNode, string, int)
FindNodeDeep(ISyntaxNode, string)
FindReferences(ISyntaxNode, ISyntaxNodes)

Locates all references to the node in the text.

FindReferences(ISyntaxNode, ISyntaxNodes, ISyntaxNode, Point)
FindUnitMember(ISyntaxNode, string, CodeCompletionScope)
FindUsingList(ISyntaxNode)
FindXmlNode(ISyntaxNode, string, string, string)
FormatArgumentList(ISyntaxNode, int, string, ITextUndoList)
FormatArrayInitializer(ISyntaxNode, int, string, ITextUndoList)
FormatBinaryExpression(ISyntaxNode, int, string, ITextUndoList)
FormatDeclaration(ISyntaxNode, int, string, ITextUndoList)
FormatExpressionStatement(ISyntaxNode, int, string, ITextUndoList)
FormatObjectCreationExpression(ISyntaxNode, int, string, ITextUndoList)
FormatParenthesizedExpression(ISyntaxNode, int, string, ITextUndoList)
FormatSwitchLabel(ISyntaxNode, int, string, ITextUndoList)
FormatUnaryExpression(ISyntaxNode, int, string, ITextUndoList)
FormatVariableDeclaration(ISyntaxNode, int, string, ITextUndoList)
FormatVariableInitializer(ISyntaxNode, int, string, ITextUndoList)
GetAutoFormatNode(ISyntaxNode, bool, out Point)

Obtains block node at specified position.

GetBaseTypes(ISyntaxNode)
GetBaseTypes(ISyntaxNode, ref Point)
GetBlockNode(ISyntaxNode)

Retrieves block node nearest to specified node.

GetBlockNodeType(ISyntaxNode, ref Point, bool, bool, out CodeCompletionScope)
GetBlockOrMethodNode(ISyntaxNode)

Retrieves block or method node nearest to specified node.

GetCastExpression(ISyntaxNode)
GetChildByName(ISyntaxNode, string, Point, bool, bool)
GetChildNode(ISyntaxNodes, ISyntaxNode, string, Point, bool, bool)
GetChildNode(ISyntaxNodes, IList<string>, ISyntaxNode, string, Point, bool, bool)
GetChildType(ISyntaxNode, ISyntaxNode, Point, out CodeCompletionScope, out object, out object, out int)
GetChildType(IList<string>, Point, ISyntaxNode, ISyntaxNode, string, out CodeCompletionScope, ref int)
GetCodeSnippets(string)

Returns code snippets for the given language.

GetCommentTemplate(Point, ISyntaxNode, string)

Returns xml comment template for given node in the text.

GetCommentTemplateForNode(ISyntaxNode, string)
GetDeclaration(ISyntaxNode, ISyntaxNode, Point, string, out CodeCompletionScope)
GetDeclaration(ISyntaxTree, ISyntaxNode)
GetDeclarationNode(ISyntaxNode)

Retrieves declaration node nearest to the specified node.

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

Obtains description of some language element.

GetElementAccessType(object, object, ISyntaxNode)
GetEnumMemberType(ISyntaxNode, out CodeCompletionScope, bool)
GetEnumType(object)
GetExpressionType(ISyntaxNode, ISyntaxNode, Point, string, out CodeCompletionScope, out object, out object, out int)
GetExpressionType(IList<string>, ISyntaxNode, ISyntaxNode, Point, object, string, out CodeCompletionScope, out object, out object, out int)
GetExpressionType(Point, ISyntaxNode, ISyntaxNode, out CodeCompletionScope, out object, out object, out int)
GetFullDescription(IListMembers, ISyntaxNode, string)
GetInvocationNode(string, ISyntaxNode, Point, out int, out int)

Retrieves invocation node at specified position.

GetMemberAccessType(ISyntaxNode, ISyntaxNode, ref string, ref Point, out CodeCompletionScope, out int)
GetMemberIndex(ISyntaxNode, out MemberAttribute)
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.

GetMethodNode(ISyntaxNode)

Retrieves method node nearest to the specified node.

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

Obtains information about some method of specified language element.

GetNamespace(string, ISyntaxNode, IList<INetNamespace>)
GetNamespaceNode(ISyntaxNode, string)
GetNamespaces()
GetNamespaces(ISyntaxNode, bool, bool)
GetNamespaces(ISyntaxNode, IList<INetNamespace>, bool)
GetNodeAttributes(ISyntaxNode, MemberAttribute)
GetNodeByName(ISyntaxNode, string, Point)
GetNodeCodeCompletionScope(ISyntaxNode)
GetNodeDataType(ISyntaxNode, ISyntaxNode, bool, bool)
GetNodeDataType(ISyntaxNode, ISyntaxNode, bool, bool, ref Point, ref bool, ref int)
GetNodeDataType(ISyntaxNode, ISyntaxNode, bool, bool, ref Point, ref bool, ref int, bool)
GetNodeName(ISyntaxNode, CodeCompletionScope)
GetNodeParameters(ISyntaxNode, ISyntaxNode)
GetNodeQualifier(ISyntaxNode)
GetNodeType(string, ISyntaxNode, Point)

Obtains information type of the SyntaxNode.

GetNodeTypeQualifier(ISyntaxNode)
GetObjectType(object)
GetOwnerDataType(ISyntaxNode, ISyntaxNode, CodeCompletionScope)
GetParameterType(object, ISyntaxNode, int)
GetQualifiedNode(ISyntaxNode, string, string, Point)
GetQualifiedType(ISyntaxNode, Point, string, bool, out CodeCompletionScope, out object, out object)
GetQuickInfo(ISyntaxNode)

Returns information about the object.

GetQuickInfo(object)

Returns information about the object.

GetRegisteredObject(string)

Retrieves registered object by its name.

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

Obtains information about a member of some language element in special cases.

GetStatementNode(ISyntaxNode)

Retrieves block node nearest to specified node.

GetTextRange(int, int, IRange)
GetTypeByName(ISyntaxNode, string)
GetTypeByName(string)

Retrieves type by its name.

GetTypeOfNode(ISyntaxNode, ISyntaxNode, ref string, ref Point, bool, bool, out CodeCompletionScope)
GetTypeOfNode(ISyntaxNode, string, Point, ref string, ref Point, bool, bool, out CodeCompletionScope, bool)
GetUsingName(ISyntaxNode)
GetUsingType(ISyntaxNode, ref string, ref Point, out CodeCompletionScope)
GetValidNode(ISyntaxNode)
GetValidScope()
GetVariableMemberType(ISyntaxNode, ISyntaxNode, ref string, ref Point, out CodeCompletionScope)
GetVirtualModifier()
GetWithStatementExpression(ISyntaxNode, ISyntaxNode, out CodeCompletionScope)
GetXmlComment(ISyntaxNode)
GetXmlCommentNode(ISyntaxNode)

Retrieves xml comment node nearest to the specified node.

GetXmlReferenceNode(ISyntaxNode)

Returns declaration node corresponding to xml comment.

HasSnippetMembers(string)
IndexOfNamespace(IList<INetNamespace>, string)
IsArrayInitializer(ISyntaxNode)

Indicates whether specified node is a array initializer expression node.

IsArrayType(string)
IsBinaryExpressionNode(ISyntaxNode)

Indicates whether specified node is a binary expression node.

IsBlockNode(ISyntaxNode)

Indicates whether specified node is a block node (contains block statement).

IsBrowsableAttribute(ISyntaxNode)
IsBuiltInType(string)
IsDeclarationNode(ISyntaxNode)

Indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).

IsDeclarationNode(ref ISyntaxNode, bool)

Indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).

IsDeclarationReference(ISyntaxNode, bool)
IsEmbeddedDeclaration(ISyntaxNode)
IsEnumTypeRegistered()
IsExpressionNode(ISyntaxNode)
IsIndexedPropertyNode(ISyntaxNode)
IsInvocationNode(ISyntaxNode)

Indicates whether specified node is a invocation node (contains call of some method or function).

IsLocalDeclaration(ISyntaxNode)
IsMemberExpressionNode(ISyntaxNode)
IsMethodNode(ISyntaxNode)

Indicates whether specified node is a method node (contains declaration of some method, constructor, destructor and so on).

IsNodePartial(ISyntaxNode)
IsObjectCreationExpression(ISyntaxNode)

Indicates whether specified node is a object creation expression node.

IsParameterListNode(ISyntaxNode)
IsParenthesizedExpression(ISyntaxNode)

Indicates whether specified node is a parenthesized expression node.

IsPrefixedUnaryExpressionNode(ISyntaxNode)

Indicates whether specified node is a binary expression node.

IsReferenceType(ISyntaxNode)
IsScopeValid(CodeCompletionScope, ISyntaxNode)
IsSpecialName(string)
IsStatementNode(ISyntaxNode)

Indicates whether specified node is a a statement node.

IsStructureGuideNode(ISyntaxNode, out IRange)

Indicates whether specified ISyntaxNode is guide node.

IsSwitchLabel(ISyntaxNode)

Indicates whether specified node is a switch label statement node.

IsUnaryExpressionNode(ISyntaxNode)

Indicates whether specified node is a binary expression node.

IsValidArgument(ISyntaxNode, Point)
IsValidLocalPosition(Point, ISyntaxNode)
IsValidMemberAccessType(ISyntaxNode, CodeCompletionScope)
IsValidScope(ISyntaxNode, Point)
IsVariableInitializer(ISyntaxNode)

Indicates whether specified node is a variable-initializer node.

IsXmlCommentNode(ISyntaxNode)

Indicates whether specified node is a xml comment node (contains xml comment).

LoadImages()
NoIntellisenseRequired(ISyntaxNode)
OnAllowGlobalMembersChanged()
OnBaseClassTypeChanged()
RegisterNamespace(string)

Adds specified namespace to the namespace list.

RegisterNamespace(string, string)

Adds specified namespace to the namespace list.

RegisterObject(string, object)

Adds specified object for code completion to the object list.

RemoveQuotes(string)
SkipGlobalMembers(ISyntaxNode, CodeCompletionScope, ref bool)
SmartFormatLine(int, string, StringItemInfo[], ISyntaxNodes, ITextUndoList)

Formats line according to the parser rules.

SplitName(string, out string)
SuppressDeclarationReferences(ISyntaxNode)
UnregisterNamespace(string)

Removes specified namespace from the namespace list.

UnregisterObject(string)

Removes specified object from the object list.