326 references to GetFirstToken
Microsoft.AspNetCore.App.CodeFixes (1)
RouteParameterUnusedParameterFixer.cs (1)
62var token = param.GetFirstToken();
Microsoft.CodeAnalysis (3)
Syntax\SyntaxNode.cs (1)
1066return GetFirstToken(includeZeroWidth: true).LeadingTrivia;
Syntax\SyntaxNodeExtensions.cs (2)
351var first = node.GetFirstToken(includeZeroWidth: true); 363var first = node.GetFirstToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CodeStyle (25)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
35var firstToken = root.GetFirstToken(includeZeroWidth: true);
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
147node.GetFirstToken().GetLocation(), 152node.GetFirstToken().ToString(),
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
89if (nextToken != nextTokenContainingStatement.GetFirstToken())
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
39=> switchBlock.GetFirstToken().GetLocation();
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
158if (lastToken.GetNextToken(includeDirectives: true) == node.GetFirstToken())
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
110parenthesizedExpression.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
698var firstToken = memberDeclaration.GetFirstToken();
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
99.Subtract(GetSpanWithinLiteralQuotes(virtualCharService, literal.Syntax.GetFirstToken())));
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
191objectCreationExpression.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
57ifStatement.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
96ifStatement.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
129objectCreationExpression.GetFirstToken().GetLocation(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
124var firstToken = root.GetFirstToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
112startToken: _rootNode.GetFirstToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
44_firstToken = Root.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
18Contract.ThrowIfFalse(root.GetFirstToken(includeZeroWidth: true).RawKind != 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (2)
283? (childNode.GetFirstToken(includeZeroWidth: true), childNode.GetLastToken(includeZeroWidth: true)) 366if (conditionStatement.GetFirstToken() == indentationAnchor)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
487var firstToken = trivia2.GetStructure()!.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
169return GetFileBanner(root.GetFirstToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
168if (token == member.GetFirstToken() &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (2)
357var previousToken = node.GetFirstToken().GetPreviousToken(); 360syntaxFacts.IsWordOrNumber(resultNode.GetFirstToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
120startToken = (startToken.RawKind != 0) ? startToken : root.GetFirstToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (3)
142if (!sourceText.AreOnSameLine(condition.GetFirstToken(), condition.GetLastToken()) || 143!sourceText.AreOnSameLine(trueSyntax.GetFirstToken(), trueSyntax.GetLastToken()) || 144!sourceText.AreOnSameLine(falseSyntax.GetFirstToken(), falseSyntax.GetLastToken()))
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
84var firstToken = objectCreation.GetFirstToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
48var start = node.GetFirstToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (3)
55var previousToken = firstParameter.GetFirstToken().GetPreviousToken(); 57if (sourceText.AreOnSameLine(previousToken, firstParameter.GetFirstToken())) 165if (text.AreOnSameLine(lastParameter.GetLastToken(), thisParameter.GetFirstToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
35var firstToken = root.GetFirstToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
171var previousToken = FirstStatementAffectedInInnermostBlock.GetFirstToken().GetPreviousToken();
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Expressions.cs (1)
4534MessageID.IDS_FeatureNestedStackalloc.CheckFeatureAvailability(diagnostics, node.GetFirstToken());
Binder\Binder_Invocation.cs (1)
1357_ => syntax.GetFirstToken()
BoundTree\BoundTreeVisitors.cs (1)
192return syntax.GetFirstToken().GetLocation();
Compilation\CSharpSemanticModel.cs (1)
1318SyntaxToken firstToken = node.GetFirstToken(includeZeroWidth: false);
FlowAnalysis\ControlFlowPass.cs (4)
219var loc = new SourceLocation(leave.Syntax.GetFirstToken()); 227var loc = new SourceLocation(leave.Syntax.GetFirstToken()); 268var firstToken = statement.Syntax.GetFirstToken(); 303var location = new SourceLocation(branch.Branch.Syntax.GetFirstToken());
Syntax\CSharpSyntaxNode.cs (1)
323return base.GetFirstToken(includeZeroWidth, includeSkipped, includeDirectives, includeDocumentationComments);
Syntax\LookupPosition.cs (1)
502firstIncluded = lambdaExpressionOrQueryNode.GetFirstToken().GetNextToken();
Microsoft.CodeAnalysis.CSharp.CodeStyle (48)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (5)
109var firstToken = statement.GetFirstToken(); 162if (FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), statement.GetLastToken())) 173var lastTokenBeforeEmbeddedStatement = embeddedStatement.GetFirstToken().GetPreviousToken(); 174if (!FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), lastTokenBeforeEmbeddedStatement)) 186if (!FormattingRangeHelper.AreTwoTokensOnSameLine(embeddedStatement.GetFirstToken(), embeddedStatement.GetLastToken()))
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
71location: switchStatement.GetFirstToken().GetLocation(),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
133var location = syntaxNode.GetFirstToken().GetLocation();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
61=> node.GetFirstToken().GetAllPrecedingTriviaToPreviousToken(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpStructuredTriviaFormatEngine.cs (1)
24var formatter = new CSharpStructuredTriviaFormatEngine(trivia, initialColumn, options, formattingRules, root.GetFirstToken(includeZeroWidth: true), root.GetLastToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
112return token.Parent.Parent.GetFirstToken() != token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
43block.Parent.GetFirstToken(includeZeroWidth: true), 90=> AddAnchorIndentationOperation(list, node.GetFirstToken(includeZeroWidth: true), node.GetLastToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (2)
170var firstTokenOfNode = node.GetFirstToken(includeZeroWidth: true); 182firstTokenOfNode = node.Parent.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (6)
69var baseToken = declaringNode.GetFirstToken(); 70AddIndentBlockOperation(list, baseToken, node.GetFirstToken(), node.GetLastToken()); 190var baseTokenForAlignment = recursivePatternParent.GetFirstToken(); 209var baseToken = baseNode.GetFirstToken(includeZeroWidth: true); 210var firstToken = body.GetFirstToken(includeZeroWidth: true); 280var firstToken = node.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
585var firstToken = node.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (5)
83AddSuppressWrappingIfOnSingleLineOperation(list, node.GetFirstToken(), node.GetLastToken()); 91AddSuppressWrappingIfOnSingleLineOperation(list, node.GetFirstToken(), node.GetLastToken()); 215node.GetFirstToken(includeZeroWidth: true), 402AddSuppressWrappingIfOnSingleLineOperation(list, parent.GetFirstToken(includeZeroWidth: true), parent.GetLastToken(includeZeroWidth: true)); 407var firstToken = item.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
145var firstTokenOfNode = node.GetFirstToken(includeZeroWidth: true); 150firstTokenOfNode = node.Parent!.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (20)
107return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 131return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 145return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 153return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 158return ValueTuple.Create(GetAppropriatePreviousToken(container.GetFirstToken()), container.GetLastToken()); 161return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 180return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 190return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 193return ValueTuple.Create(containerOfList.GetFirstToken(), containerOfList.GetLastToken()); 198return ValueTuple.Create(parent.GetFirstToken(), parent.GetLastToken()); 206return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 215var firstTokenOfInnerBlock = parent.GetFirstToken(); 226return ValueTuple.Create(parentOfParent.GetFirstToken(), parentOfParent.GetLastToken()); 234return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 241return ValueTuple.Create(GetAppropriatePreviousToken(containerOfBlock.GetFirstToken()), containerOfBlock.GetLastToken()); 250var firstTokenOfInnerBlock = parent.GetFirstToken(); 261return ValueTuple.Create(GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 277return (GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 280return (GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 339return GetAppropriatePreviousToken(labelNode.GetFirstToken());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (14)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
588var firstToken = node.GetFirstToken(); 763if (!document.Text.AreOnSameLine(component.GetFirstToken(), component.GetLastToken()))
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
98=> sourceText.AreOnSameLine(node.GetFirstToken(), node.GetLastToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (2)
199var baseToken = node.Parent.GetFirstToken(includeZeroWidth: true); 203node.GetFirstToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (7)
233return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(embeddedStatementOwner.GetFirstToken(includeZeroWidth: true).SpanStart)); 275return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(nonTerminalNode.GetFirstToken(includeZeroWidth: true).SpanStart), indenter.Options.FormattingOptions.IndentationSize); 289return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(nonTerminalNode.GetFirstToken(includeZeroWidth: true).SpanStart)); 309return GetDefaultIndentationFromToken(indenter, token.Parent.GetFirstToken(includeZeroWidth: true)); 349var firstToken = node.GetFirstToken(includeZeroWidth: true); 384var firstToken = queryExpressionClause.GetFirstToken(includeZeroWidth: true); 428return indenter.GetIndentationOfToken(queryBody.Parent.GetFirstToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (2)
59var firstRewrittenToken = rewrittenNode.GetFirstToken(true, false, true, true); 60var firstOriginalToken = originalNode.GetFirstToken(true, false, true, true);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
236=> context.ReportDiagnostic(Diagnostic.Create(s_syntaxDiagnosticDescriptor, context.Tree.GetRoot().GetFirstToken().GetLocation()));
Microsoft.CodeAnalysis.CSharp.Features (27)
ChangeSignature\ChangeSignatureFormattingRule.cs (2)
42var baseToken = node.Parent.GetFirstToken(); 43var startToken = node.GetFirstToken();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (3)
119var firstNonDirectiveToken = root.GetFirstToken(); 219var firstToken = root.GetFirstToken(includeDirectives: true); 247var firstSemanticToken = root.GetFirstToken();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
129var fileBanner = root.GetFirstToken() == namespaceDeclaration.GetFirstToken()
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
274var firstToken = node.GetFirstToken();
EditAndContinue\BreakpointSpans.cs (1)
113=> CreateSpan(node.GetFirstToken(), node.GetLastToken());
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (1)
75TriviaLocation.BeforeBeginningOfSpan => callsite.GetFirstToken(includeZeroWidth: true).GetPreviousToken(includeZeroWidth: true),
ExtractMethod\CSharpSelectionResult.cs (1)
96return firstToken.SpanStart <= current.GetFirstToken().SpanStart &&
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (2)
38? foundContinuedLoop.GetFirstToken().Span.Start 66return foundReturnableConstruct.GetFirstToken().Span.Start;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
85else if (parent.GetFirstToken() == openBrace)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (5)
109var firstToken = statement.GetFirstToken(); 162if (FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), statement.GetLastToken())) 173var lastTokenBeforeEmbeddedStatement = embeddedStatement.GetFirstToken().GetPreviousToken(); 174if (!FormattingRangeHelper.AreTwoTokensOnSameLine(statement.GetFirstToken(), lastTokenBeforeEmbeddedStatement)) 186if (!FormattingRangeHelper.AreTwoTokensOnSameLine(embeddedStatement.GetFirstToken(), embeddedStatement.GetLastToken()))
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
71location: switchStatement.GetFirstToken().GetLocation(),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
133var location = syntaxNode.GetFirstToken().GetLocation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
588var firstToken = node.GetFirstToken(); 763if (!document.Text.AreOnSameLine(component.GetFirstToken(), component.GetLastToken()))
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
98=> sourceText.AreOnSameLine(node.GetFirstToken(), node.GetLastToken());
Structure\CSharpStructureHelpers.cs (2)
235var startToken = node.GetFirstToken(); 450var spanStart = syntaxList.First().GetFirstToken().FullSpan.End;
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
82startToken = declaration.GetFirstToken();
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
65: declaration.GetFirstToken();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\SyntaxExtensions.cs (1)
19return node.GetFirstToken(includeSkipped: true).LeadingTrivia;
Syntax\SyntaxNodeTests.cs (2)
1085SyntaxToken token = syntaxTree.GetRoot().GetFirstToken(); 1235SyntaxToken token = syntaxTree.GetRoot().GetFirstToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Workspaces (57)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3039var firstToken = node.GetFirstToken();
Formatting\TypingFormattingRule.cs (1)
34var firstTokenOfNode = node.GetFirstToken(includeZeroWidth: true);
Simplification\CSharpSimplificationService.cs (2)
140var firstRewrittenToken = rewrittenNode.GetFirstToken(true, false, true, true); 141var firstOriginalToken = originalNode.GetFirstToken(true, false, true, true);
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
160if (!FormattingRangeHelper.AreTwoTokensOnSameLine(node.Parent.GetFirstToken(), node.GetFirstToken().GetPreviousToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
61=> node.GetFirstToken().GetAllPrecedingTriviaToPreviousToken(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\CSharpStructuredTriviaFormatEngine.cs (1)
24var formatter = new CSharpStructuredTriviaFormatEngine(trivia, initialColumn, options, formattingRules, root.GetFirstToken(includeZeroWidth: true), root.GetLastToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
112return token.Parent.Parent.GetFirstToken() != token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
43block.Parent.GetFirstToken(includeZeroWidth: true), 90=> AddAnchorIndentationOperation(list, node.GetFirstToken(includeZeroWidth: true), node.GetLastToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (2)
170var firstTokenOfNode = node.GetFirstToken(includeZeroWidth: true); 182firstTokenOfNode = node.Parent.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (6)
69var baseToken = declaringNode.GetFirstToken(); 70AddIndentBlockOperation(list, baseToken, node.GetFirstToken(), node.GetLastToken()); 190var baseTokenForAlignment = recursivePatternParent.GetFirstToken(); 209var baseToken = baseNode.GetFirstToken(includeZeroWidth: true); 210var firstToken = body.GetFirstToken(includeZeroWidth: true); 280var firstToken = node.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
585var firstToken = node.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (5)
83AddSuppressWrappingIfOnSingleLineOperation(list, node.GetFirstToken(), node.GetLastToken()); 91AddSuppressWrappingIfOnSingleLineOperation(list, node.GetFirstToken(), node.GetLastToken()); 215node.GetFirstToken(includeZeroWidth: true), 402AddSuppressWrappingIfOnSingleLineOperation(list, parent.GetFirstToken(includeZeroWidth: true), parent.GetLastToken(includeZeroWidth: true)); 407var firstToken = item.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
145var firstTokenOfNode = node.GetFirstToken(includeZeroWidth: true); 150firstTokenOfNode = node.Parent!.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (20)
107return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 131return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 145return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 153return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 158return ValueTuple.Create(GetAppropriatePreviousToken(container.GetFirstToken()), container.GetLastToken()); 161return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken(), canTokenBeFirstInABlock: true), parent.GetLastToken()); 180return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 190return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 193return ValueTuple.Create(containerOfList.GetFirstToken(), containerOfList.GetLastToken()); 198return ValueTuple.Create(parent.GetFirstToken(), parent.GetLastToken()); 206return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 215var firstTokenOfInnerBlock = parent.GetFirstToken(); 226return ValueTuple.Create(parentOfParent.GetFirstToken(), parentOfParent.GetLastToken()); 234return ValueTuple.Create(GetAppropriatePreviousToken(parent.GetFirstToken()), parent.GetLastToken()); 241return ValueTuple.Create(GetAppropriatePreviousToken(containerOfBlock.GetFirstToken()), containerOfBlock.GetLastToken()); 250var firstTokenOfInnerBlock = parent.GetFirstToken(); 261return ValueTuple.Create(GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 277return (GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 280return (GetPreviousTokenIfNotFirstTokenInTree(parent.GetFirstToken()), parent.GetLastToken()); 339return GetAppropriatePreviousToken(labelNode.GetFirstToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (2)
199var baseToken = node.Parent.GetFirstToken(includeZeroWidth: true); 203node.GetFirstToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (7)
233return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(embeddedStatementOwner.GetFirstToken(includeZeroWidth: true).SpanStart)); 275return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(nonTerminalNode.GetFirstToken(includeZeroWidth: true).SpanStart), indenter.Options.FormattingOptions.IndentationSize); 289return indenter.GetIndentationOfLine(sourceText.Lines.GetLineFromPosition(nonTerminalNode.GetFirstToken(includeZeroWidth: true).SpanStart)); 309return GetDefaultIndentationFromToken(indenter, token.Parent.GetFirstToken(includeZeroWidth: true)); 349var firstToken = node.GetFirstToken(includeZeroWidth: true); 384var firstToken = queryExpressionClause.GetFirstToken(includeZeroWidth: true); 428return indenter.GetIndentationOfToken(queryBody.Parent.GetFirstToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (2)
59var firstRewrittenToken = rewrittenNode.GetFirstToken(true, false, true, true); 60var firstOriginalToken = originalNode.GetFirstToken(true, false, true, true);
Microsoft.CodeAnalysis.Features (57)
AddImport\References\Reference.cs (1)
87var newIdentifier = generator.IdentifierName(SearchResult.DesiredName).GetFirstToken().WithTriviaFrom(identifier);
AddImport\SymbolReferenceFinder.cs (1)
322var name = nameNode.GetFirstToken().ValueText;
AddImport\SymbolResult.cs (2)
38NameNode.GetFirstToken().ValueText != DesiredName; 45NameNode.GetFirstToken().ValueText, DesiredName);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (2)
107if (containingStatement is not null && containingStatement.GetFirstToken() != token) 109var indexOfLine = lines.IndexOf(containingStatement.GetFirstToken().SpanStart);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (5)
154var text = piece.GetFirstToken().Text; 155var value = piece.GetFirstToken().Value?.ToString() ?? piece.GetFirstToken().ValueText; 258var existingText = interpolatedStringTextNode.GetFirstToken().Text; 259var existingValue = interpolatedStringTextNode.GetFirstToken().ValueText;
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
312int.TryParse(literalExpression.GetFirstToken().ValueText, out var index) &&
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (2)
93var text = literalExpression.GetFirstToken().Text; 94var valueText = literalExpression.GetFirstToken().ValueText;
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (2)
212var startPosition = member.GetFirstToken().SpanStart; 335var token = targetMember.GetFirstToken();
ExtractMethod\SelectionResult.cs (1)
173if (IsConfigureAwaitFalse(node) && !UnderAnonymousOrLocalMethod(node.GetFirstToken(), firstToken, lastToken))
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (2)
52expr.GetFirstToken(), 53expr.GetFirstToken().GetNextToken(),
GenerateType\AbstractGenerateTypeService.State.cs (1)
94NameIsVerbatim = syntaxFacts.IsVerbatimIdentifier(SimpleName.GetFirstToken());
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (2)
432name.GetFirstToken(), 433AddConflictAnnotation(name.GetFirstToken(), conflictMessage));
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (4)
102CanInsertStatementBeforeToken(parentNode.GetFirstToken())) 107if (sourceText.AreOnSameLine(dotToken, name.GetFirstToken())) 135if (syntaxFacts.IsQualifiedName(parentNode) && CanInsertStatementBeforeToken(parentNode.GetFirstToken())) 140if (sourceText.AreOnSameLine(dotToken, right.GetFirstToken()))
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
75var token = name.GetFirstToken();
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
35var firstToken = root.GetFirstToken(includeZeroWidth: true);
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
147node.GetFirstToken().GetLocation(), 152node.GetFirstToken().ToString(),
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
89if (nextToken != nextTokenContainingStatement.GetFirstToken())
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
39=> switchBlock.GetFirstToken().GetLocation();
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
158if (lastToken.GetNextToken(includeDirectives: true) == node.GetFirstToken())
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
110parenthesizedExpression.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
698var firstToken = memberDeclaration.GetFirstToken();
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
99.Subtract(GetSpanWithinLiteralQuotes(virtualCharService, literal.Syntax.GetFirstToken())));
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
191objectCreationExpression.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
57ifStatement.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
96ifStatement.GetFirstToken().GetLocation(),
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
129objectCreationExpression.GetFirstToken().GetLocation(),
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (3)
142if (!sourceText.AreOnSameLine(condition.GetFirstToken(), condition.GetLastToken()) || 143!sourceText.AreOnSameLine(trueSyntax.GetFirstToken(), trueSyntax.GetLastToken()) || 144!sourceText.AreOnSameLine(falseSyntax.GetFirstToken(), falseSyntax.GetLastToken()))
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
84var firstToken = objectCreation.GetFirstToken();
Wrapping\AbstractWrapper.cs (1)
52var firstToken = item.IsToken ? item.AsToken() : item.AsNode()!.GetFirstToken();
Wrapping\Edit.cs (1)
69var rightFirstToken = right.IsToken ? right.AsToken() : right.AsNode()!.GetFirstToken();
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (11)
100? Edit.UpdateBetween(_listSyntax.GetFirstToken(), NewLineTrivia, await _singleIndentationTrivia.GetValueAsync(cancellationToken).ConfigureAwait(false), _listItems[0]) 101: Edit.DeleteBetween(_listSyntax.GetFirstToken(), _listItems[0])); 106var openToken = _listSyntax.GetFirstToken(); 118var openToken = _listSyntax.GetFirstToken(); 132var previousToken = _listSyntax.GetFirstToken().GetPreviousToken(); 208result.Add(Edit.DeleteBetween(_listSyntax.GetFirstToken().GetPreviousToken(), _listSyntax.GetFirstToken())); 297_listSyntax.GetFirstToken().GetPreviousToken(), NewLineTrivia, 299_listSyntax.GetFirstToken())); 432_listSyntax.GetFirstToken().GetPreviousToken(), NewLineTrivia, 434_listSyntax.GetFirstToken()));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Diagnostics\NonLocalDiagnosticTests.cs (2)
94var diagnostic = Diagnostic.Create(NonLocalDescriptor, root.GetFirstToken().GetLocation()); 105var diagnostic = Diagnostic.Create(CompilationEndDescriptor, root.GetFirstToken().GetLocation());
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\Binder_Expressions.vb (1)
4037Return argumentExpression.GetFirstToken() ' since we use this for error reporting, this gives us something close, anyway.
BoundTree\BoundTreeVisitor.vb (1)
168Return syntax.GetFirstToken().GetLocation()
Syntax\VisualBasicSyntaxNode.vb (1)
320Return CType(MyBase.GetFirstToken(includeZeroWidth, includeSkipped, includeDirectives, includeDocumentationComments), SyntaxToken)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\Workspaces\VisualBasic\Portable\Formatting\Engine\VisualBasicStructuredTriviaFormatEngine.vb (1)
21Dim formatter = New VisualBasicStructuredTriviaFormatEngine(trivia, initialColumn, options, formattingRules, root.GetFirstToken(includeZeroWidth:=True), root.GetLastToken(includeZeroWidth:=True))
src\Workspaces\VisualBasic\Portable\Formatting\Rules\NodeBasedFormattingRule.vb (4)
21Dim baseToken = node.GetFirstToken(includeZeroWidth:=True) 145AddIndentBlockOperation(operations, outerBlockWithBaseToken.GetFirstToken(), pair.Item1, pair.Item2) 201Dim outerBlockGetFirstToken = outerBlock.GetFirstToken() 209outerBlockGetFirstToken = outerBlock.GetFirstToken()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (2)
62Dim baseToken = node.GetFirstToken(includeZeroWidth:=True) 97Dim openBrace = parameterOrArgumentList.GetFirstToken(includeZeroWidth:=True)
Microsoft.CodeAnalysis.VisualBasic.Features (12)
ChangeSignature\ChangeSignatureFormattingRule.vb (2)
24Dim firstToken As SyntaxToken = node.GetFirstToken() 27node.Parent.GetFirstToken(),
ExtractMethod\VisualBasicMethodExtractor.TriviaResult.vb (1)
61Return callsite.GetFirstToken(includeZeroWidth:=True).GetPreviousToken(includeZeroWidth:=True)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
102currentToken.Parent.GetFirstToken(includeZeroWidth:=True) = currentToken Then
ExtractMethod\VisualBasicSelectionResult.vb (1)
87Return firstToken.SpanStart <= current.GetFirstToken().SpanStart AndAlso
ExtractMethod\VisualBasicSelectionValidator.vb (1)
518commonRoot.GetFirstToken(includeZeroWidth:=True) = firstTokenInSelection AndAlso
GoToDefinition\VisualBasicGoToDefinitionSymbolService.vb (2)
33Return FindContainingReturnableConstruct(node).GetFirstToken().Span.Start 38Return continueTarget.GetFirstToken().Span.Start
Structure\VisualBasicStructureHelpers.vb (2)
93Dim startToken = node.GetFirstToken() 212Dim firstToken = blockNode.GetFirstToken()
Wrapping\SeparatedSyntaxList\VisualBasicArgumentWrapper.vb (1)
64startToken = declaration.GetFirstToken()
Wrapping\SeparatedSyntaxList\VisualBasicParameterWrapper.vb (1)
56declaration.GetFirstToken())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
2216Dim token As SyntaxToken = tree.GetRoot().GetFirstToken() 2231token = tree.GetRoot().GetFirstToken()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
Formatting\Engine\VisualBasicStructuredTriviaFormatEngine.vb (1)
21Dim formatter = New VisualBasicStructuredTriviaFormatEngine(trivia, initialColumn, options, formattingRules, root.GetFirstToken(includeZeroWidth:=True), root.GetLastToken(includeZeroWidth:=True))
Formatting\Rules\NodeBasedFormattingRule.vb (4)
21Dim baseToken = node.GetFirstToken(includeZeroWidth:=True) 145AddIndentBlockOperation(operations, outerBlockWithBaseToken.GetFirstToken(), pair.Item1, pair.Item2) 201Dim outerBlockGetFirstToken = outerBlock.GetFirstToken() 209outerBlockGetFirstToken = outerBlock.GetFirstToken()
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
116If parent.Kind = SyntaxKind.FunctionAggregation AndAlso parent.GetFirstToken() = identifier Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (2)
62Dim baseToken = node.GetFirstToken(includeZeroWidth:=True) 97Dim openBrace = parameterOrArgumentList.GetFirstToken(includeZeroWidth:=True)
Microsoft.CodeAnalysis.Workspaces (26)
CodeCleanup\AbstractCodeCleanerService.cs (3)
293previousToken = (previousToken.RawKind == 0) ? root.GetFirstToken(includeZeroWidth: true) : previousToken; 337previousToken = (previousToken.RawKind == 0) ? root.GetFirstToken(includeZeroWidth: true) : previousToken; 425return root.GetFirstToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (3)
412var location = node.GetFirstToken().GetLocation(); 529var location = node.GetFirstToken().GetLocation(); 564var location = node.GetFirstToken().GetLocation();
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
83return node.GetFirstToken() == token && syntaxFacts.IsConversionExpression(node);
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
168var location = node.GetFirstToken().GetLocation();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
124var firstToken = root.GetFirstToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
112startToken: _rootNode.GetFirstToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
44_firstToken = Root.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
18Contract.ThrowIfFalse(root.GetFirstToken(includeZeroWidth: true).RawKind != 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (2)
283? (childNode.GetFirstToken(includeZeroWidth: true), childNode.GetLastToken(includeZeroWidth: true)) 366if (conditionStatement.GetFirstToken() == indentationAnchor)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
487var firstToken = trivia2.GetStructure()!.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
169return GetFileBanner(root.GetFirstToken(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
168if (token == member.GetFirstToken() &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (2)
357var previousToken = node.GetFirstToken().GetPreviousToken(); 360syntaxFacts.IsWordOrNumber(resultNode.GetFirstToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
120startToken = (startToken.RawKind != 0) ? startToken : root.GetFirstToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
48var start = node.GetFirstToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (3)
55var previousToken = firstParameter.GetFirstToken().GetPreviousToken(); 57if (sourceText.AreOnSameLine(previousToken, firstParameter.GetFirstToken())) 165if (text.AreOnSameLine(lastParameter.GetLastToken(), thisParameter.GetFirstToken()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
35var firstToken = root.GetFirstToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
171var previousToken = FirstStatementAffectedInInnermostBlock.GetFirstToken().GetPreviousToken();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
CodeCleanup\CodeCleanupTests.cs (1)
350var previousToken = member.GetFirstToken().GetPreviousToken().GetPreviousToken();
CodeCleanup\Extensions.cs (1)
20var previousToken = node.GetFirstToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true).GetPreviousToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true);
UtilityTest\FormattingRangeHelperTests.cs (3)
20var token1 = root.GetFirstToken(); 30var token1 = root.GetFirstToken(); 39var token = SyntaxFactory.ParseSyntaxTree("else\nFoo();").GetRoot().GetFirstToken();
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (2)
1245var firstToken = node.GetFirstToken(); 3349var firstToken = container.GetFirstToken();
CodeModel\SyntaxNodeExtensions.cs (1)
68return node.GetFirstToken();
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (2)
857Dim token = node.GetFirstToken(includeSkipped:=True) 3815Dim firstToken = container.GetFirstToken()