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

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

.NET API 245,760 bytes

 CodeUnit

A basic code unit, either an expression or a statement.

Gets the collection of expressions beneath this code unit.

Gets the collection of statements beneath this code unit.

public CodePartType CodePartType { get; }

Gets the type of the code unit.

public string FriendlyPluralTypeText { get; }

Gets the friendly name of the code unit type as a plural noun, which can be used in user output.

public string FriendlyTypeText { get; }

Gets the friendly name of the code unit type, which can be used in user output.

public bool HasBody { get; }

Gets a value indicating whether this instance has body.

public virtual int LineNumber { get; }

Gets the line number that this code unit appears on in the document.

public virtual CodeLocation Location { get; }

Gets the location of this code unit within the document.

public ICodePart Parent { get; }

Gets the parent of this code unit.

public virtual CsTokenList Tokens { get; }

Gets the list of tokens within this code unit.

public VariableCollection Variables { get; }

Gets the list of variables and constants defined by this code unit.