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
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
- ClearNamespaces()
Clears namespace list.
- ClearObjects()
Clears object list.
- 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.
- FindReferences(ISyntaxNode, ISyntaxNodes)
Locates all references to the node in the text.
- GetAutoFormatNode(ISyntaxNode, bool, out Point)
Obtains block node at specified position.
- GetBlockNode(ISyntaxNode)
Retrieves block node nearest to specified node.
- GetBlockOrMethodNode(ISyntaxNode)
Retrieves block or method node nearest to specified node.
- GetCodeSnippets(string)
Returns code snippets for the given language.
- GetCommentTemplate(Point, ISyntaxNode, string)
Returns xml comment template for given node in the text.
- GetDeclarationNode(ISyntaxNode)
Retrieves declaration node nearest to the specified node.
- GetDescription(IListMembers, ISyntaxNode, object, string, bool)
Obtains description of some language element.
- GetInvocationNode(string, ISyntaxNode, Point, out int, out int)
Retrieves invocation node at specified position.
- 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.
- GetNodeType(string, ISyntaxNode, Point)
Obtains information type of the
SyntaxNode
.
- GetQuickInfo(ISyntaxNode)
Returns information about the object.
- GetQuickInfo(object)
Returns information about the object.
- GetRegisteredObject(string)
Retrieves registered object by its name.
- 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.
- GetTypeByName(string)
Retrieves type by its name.
- GetXmlCommentNode(ISyntaxNode)
Retrieves xml comment node nearest to the specified node.
- GetXmlReferenceNode(ISyntaxNode)
Returns declaration node corresponding to xml comment.
- IsArrayInitializer(ISyntaxNode)
Indicates whether specified node is a array initializer expression node.
- IsBinaryExpressionNode(ISyntaxNode)
Indicates whether specified node is a binary expression node.
- IsBlockNode(ISyntaxNode)
Indicates whether specified node is a block node (contains block statement).
- 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).
- IsInvocationNode(ISyntaxNode)
Indicates whether specified node is a invocation node (contains call of some method or function).
- IsMethodNode(ISyntaxNode)
Indicates whether specified node is a method node (contains declaration of some method, constructor, destructor and so on).
- IsObjectCreationExpression(ISyntaxNode)
Indicates whether specified node is a object creation expression node.
- IsParenthesizedExpression(ISyntaxNode)
Indicates whether specified node is a parenthesized expression node.
- IsPrefixedUnaryExpressionNode(ISyntaxNode)
Indicates whether specified node is a binary expression node.
- 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.
- 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).
- 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.
- SmartFormatLine(int, string, StringItemInfo[], ISyntaxNodes, ITextUndoList)
Formats line according to the parser rules.
- UnregisterNamespace(string)
Removes specified namespace from the namespace list.
- UnregisterObject(string)
Removes specified object from the object list.