StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes

 CsDocument

Represents a parsed C# document.
public CodePartType CodePartType { get; }

Gets the type of this code part.

public FileHeader FileHeader { get; }

Gets the file header, if any.

public int LineNumber { get; }

Gets the line number on which the document begins.

public CodeLocation Location { get; }

Gets the location of the document.

public ICodePart Parent { get; }

Gets the parent of the document.

public CsParser Parser { get; }

Gets the parser that created this document.

public DocumentRoot RootElement { get; }

Gets the root element for this document.

public MasterList<CsToken> Tokens { get; }

Gets the list of tokens in the document.

public void WalkDocument<T>(CodeWalkerElementVisitor<T> elementCallback, CodeWalkerStatementVisitor<T> statementCallback, CodeWalkerExpressionVisitor<T> expressionCallback, CodeWalkerQueryClauseVisitor<T> queryClauseCallback, T context)

Walks through the code units in the document.

public void WalkDocument<T>(CodeWalkerElementVisitor<T> elementCallback, CodeWalkerStatementVisitor<T> statementCallback, CodeWalkerExpressionVisitor<T> expressionCallback, T context)

Walks through the code units in the document.

public void WalkDocument<T>(CodeWalkerElementVisitor<T> elementCallback, CodeWalkerStatementVisitor<T> statementCallback, T context)

Walks through the code units in the document.

public void WalkDocument<T>(CodeWalkerElementVisitor<T> elementCallback, T context)

Walks through the code units in the document.

public void WalkDocument(CodeWalkerElementVisitor<object> elementCallback, CodeWalkerStatementVisitor<object> statementCallback, CodeWalkerExpressionVisitor<object> expressionCallback, CodeWalkerQueryClauseVisitor<object> queryClauseCallback)

Walks through the code units in the document.

public void WalkDocument(CodeWalkerElementVisitor<object> elementCallback, CodeWalkerStatementVisitor<object> statementCallback, CodeWalkerExpressionVisitor<object> expressionCallback)

Walks through the code units in the document.

public void WalkDocument(CodeWalkerElementVisitor<object> elementCallback, CodeWalkerStatementVisitor<object> statementCallback)

Walks through the code units in the document.

public void WalkDocument(CodeWalkerElementVisitor<object> elementCallback)

Walks through the code units in the document.