Table of Contents

Class CsRepository

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

Represents properties and methods to perform code completion functionality for the C# language.

public class CsRepository : RoslynRepository, IRoslynRepository, ICodeCompletionRepository, IDisposable, IUpdate
Inheritance
CsRepository
Implements

Constructors

CsRepository(ISyntaxParser, IRoslynSolution, bool)

Initializes a new instance of the CsRepository class with specified settings.

Methods

CanProvideCodeCompletion(SyntaxNode, int)
CodeCompletionAsync(Point, CodeCompletionArgs, CancellationToken)

Performs code completion for the specified text representing language element.

CompleteBrace(Point, CodeCompletionArgs)
CompleteComment(Point, CodeCompletionArgs)
CompleteSpecialListMembers(Point, CodeCompletionArgs)
FindContainingDeclaration(SyntaxNode)
FindUniqueSymbolNameAndPos(SemanticModel, SyntaxNode, ref string, ref bool, ref int)
GetCommentTemplateForNode(CSharpSyntaxNode, string)
GetMethodTemplateForEvent(SemanticModel, ISymbol, string, int, bool)
GetNodeName(SyntaxNode)
GetQuickInfoName(SyntaxNode)
GetXmlComment()

Represents beginning of XML comment.

IsBlockNode(SyntaxNode, int)
IsBlockSyntax(SyntaxNode)
IsCloseToken(SyntaxToken, int)
IsCollapsible(SyntaxNode, out string, out TextSpan, bool)

Indicates whether specified Microsoft.CodeAnalysis.SyntaxNode can be outlined.

IsCollapsible(IEnumerable<SyntaxTrivia>, out string, out TextSpan)

Indicates whether specified Microsoft.CodeAnalysis.SyntaxTrivia list can be outlined.

IsDeclarationNode(ref SyntaxNode)
IsEventAssignment(Point)
IsIndentToken(SyntaxToken, int)
IsStructureGuideNode(SyntaxNode, out TextSpan)

Indicates whether specified Microsoft.CodeAnalysis.SyntaxNode is guide node.

IsSyntaxBlockNode(SyntaxNode)
IsValidReferenceToken(SyntaxToken)
ProcessSnippetBody(string, Point, out string)

Checks whether snippet body code needs inserting.

TryGetBreakpointSpan(SyntaxTree, int, CancellationToken, out TextSpan)