5 references to Position
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (2)
53
/// The token to the left of <see cref="
Position
"/>. This token may be touching the position.
58
/// The first token to the left of <see cref="
Position
"/> that we're not touching. Equal to <see cref="LeftToken"/>
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (3)
328
return this.SyntaxTree.IsTypeDeclarationContext(this.
Position
, this, validModifiers, validTypeDeclarations, canBePartial, cancellationToken);
333
var previousToken = LeftToken.GetPreviousTokenIfTouchingWord(
Position
);
407
return this.SyntaxTree.IsMemberDeclarationContext(this.
Position
, this, validModifiers, validTypeDeclarations, canBePartial, cancellationToken);