922 references to IsMissing
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
419variableDesignationSyntax.Identifier is { IsMissing: false } identifer) 439parameter.Identifier is { IsMissing: false } identifer)
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
72if (endToken.IsMissing)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
138if (valuePattern == default || valuePattern.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
950if (!token.IsMissing) 968if (!current.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
349if (operation.TextSpan.End == position && nextToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
452if (token1.IsMissing || token2.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
548if ((this.Token1.IsMissing && trivia1.RawKind == 0) || 549(trivia2.RawKind == 0 && this.Token2.IsMissing))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
90if (startToken.IsMissing) 108if (endToken.IsMissing)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
34if (lastToken.IsMissing)
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Patterns.cs (1)
881if (!permitDesignations && !identifier.IsMissing)
Parser\Blender.Reader.cs (1)
263if ((nodeOrToken.IsToken && nodeOrToken.AsToken().IsMissing) ||
Syntax\CSharpLineDirectiveMap.cs (3)
52if (!lineToken.IsMissing) 110if (!token.IsMissing && 142if (!token.IsMissing)
Syntax\SyntaxFactory.cs (3)
2370return !closingToken.IsMissing; 2376if (token.IsMissing) 2387if (token.IsMissing)
Syntax\SyntaxNormalizer.cs (1)
86if (token.Kind() == SyntaxKind.None || (token.IsMissing && token.FullWidth == 0))
Syntax\SyntaxTokenParser.cs (2)
62/// of <see cref="SyntaxKind.None"/>, <see cref="SyntaxToken.IsMissing"/> set to <see langword="true"/>, and a parent of <see langword="null"/>. The 77/// of <see cref="SyntaxKind.None"/>, <see cref="SyntaxToken.IsMissing"/> set to <see langword="true"/>, and a parent of <see langword="null"/>. The
Microsoft.CodeAnalysis.CSharp.CodeStyle (25)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
53if (namespaceDeclaration.OpenBraceToken.IsMissing)
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
92if (token.IsMissing)
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
73if (token.IsMissing)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
148if (identifier.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (4)
23if (node.OpenParenToken.IsMissing || node.CloseParenToken.IsMissing) 688if (node.OpenParenToken.IsMissing || node.CloseParenToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
71if (declaration.CloseBraceToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
41if (token1.IsMissing && token1.FullWidth() == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
57bracketOrBracePair.openBracketOrBrace.IsMissing ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
72if (node is CollectionExpressionSyntax { OpenBracketToken.IsMissing: false, CloseBracketToken.IsMissing: false } collectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
361if (lastToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (2)
70if (fromClause.InKeyword.IsMissing) 102if (!baseToken.IsMissing && !baseToken.Equals(endToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (6)
233if (!tryStatement.TryKeyword.IsMissing && tryStatement.Block != null && !tryStatement.Block.CloseBraceToken.IsMissing) 242if (!catchClause.CatchKeyword.IsMissing && catchClause.Block != null && !catchClause.Block.CloseBraceToken.IsMissing) 251if (!finallyClause.FinallyKeyword.IsMissing && finallyClause.Block != null && !finallyClause.Block.CloseBraceToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
830return identifier.IsMissing ? missingTokenPlaceholder : identifier.Text; 853name = nameToken.IsMissing ? missingTokenPlaceholder : nameToken.Text; 882name = nameToken.IsMissing ? missingTokenPlaceholder : nameToken.Text;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (22)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
72!parenthesizedExpression.CloseParenToken.IsMissing)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
44if (constraint.Type is not IdentifierNameSyntax { Identifier.IsMissing: true } type)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (4)
51if (!constructorInitializer.ArgumentList.CloseParenToken.IsMissing) 95!objectCreationExpression.ArgumentList.CloseParenToken.IsMissing) 127!attribute.ArgumentList.CloseParenToken.IsMissing) 156!implicitObjectCreation.ArgumentList.CloseParenToken.IsMissing)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (4)
59!methodDeclaration.ParameterList.OpenParenToken.IsMissing && 60!methodDeclaration.ParameterList.CloseParenToken.IsMissing) 110return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing; 124return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing;
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
42if (!recordKeyword.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
195=> declaration.ChildTokens().Where(t => t.Kind() is SyntaxKind.OpenBraceToken or SyntaxKind.CloseBraceToken && t.IsMissing).Any();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1586if (parenthesizedLambda.ArrowToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
173genericName.TypeArgumentList.LessThanToken == lessThanToken && !genericName.TypeArgumentList.GreaterThanToken.IsMissing;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (2)
59if (lastToken.IsMissing) 100if (token.IsMissing || token.IsKind(SyntaxKind.None))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (6)
90if (previousToken.Kind() == SyntaxKind.None || previousToken.IsMissing) 143!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var colonIsFirstTokenOnLine = !constructorInitializer.ColonToken.IsMissing && constructorInitializer.ColonToken.IsFirstTokenOnLine(text); 151var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 171=> node != null && node.OpenBracketToken.IsMissing && node.CloseBracketToken.IsMissing;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (43)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (7)
112if (endToken.IsMissing) 124if (startToken.IsMissing || startToken.Kind() == SyntaxKind.None) 263if (!lastToken.IsMissing && lastToken.Kind() == SyntaxKind.SemicolonToken) 275=> lastToken.IsMissing && lastToken.Span.End == line.EndIncludingLineBreak; 599if (switchStatementNode.OpenParenToken.IsMissing 600&& switchStatementNode.CloseParenToken.IsMissing 626if (syntaxToken.IsMissing || syntaxToken.IsKind(SyntaxKind.None))
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (32)
187if (doStatementNode.WhileKeyword.IsMissing 188&& doStatementNode.SemicolonToken.IsMissing 189&& doStatementNode.OpenParenToken.IsMissing 190&& doStatementNode.CloseParenToken.IsMissing) 423RoslynDebug.Assert(!baseObjectCreationExpressionNode.NewKeyword.IsMissing); 501=> !baseTypeDeclarationNode.Identifier.IsMissing 513&& baseMethodDeclarationNode.SemicolonToken.IsMissing 546=> baseFieldDeclarationNode is { Declaration.Variables: [{ Initializer: null }], SemicolonToken.IsMissing: true } 553&& accessorDeclarationNode.SemicolonToken.IsMissing) 622&& indexerDeclarationNode.AccessorList.OpenBraceToken.IsMissing; 638=> !switchStatementNode.SwitchKeyword.IsMissing && switchStatementNode.OpenBraceToken.IsMissing; 641=> !tryStatementNode.TryKeyword.IsMissing 642&& tryStatementNode.Block.OpenBraceToken.IsMissing 646=> !catchClauseSyntax.CatchKeyword.IsMissing 647&& catchClauseSyntax.Block.OpenBraceToken.IsMissing 651=> !finallyClauseNode.FinallyKeyword.IsMissing 652&& finallyClauseNode.Block.OpenBraceToken.IsMissing 656=> checkedStatementNode.Block.OpenBraceToken.IsMissing 662=> !doStatementNode.DoKeyword.IsMissing 668&& !commonForEachStatementNode.OpenParenToken.IsMissing 669&& !commonForEachStatementNode.CloseParenToken.IsMissing 674&& !forStatementNode.OpenParenToken.IsMissing 675&& !forStatementNode.CloseParenToken.IsMissing 680&& !ifStatementNode.OpenParenToken.IsMissing 681&& !ifStatementNode.CloseParenToken.IsMissing 717&& !lockStatementNode.OpenParenToken.IsMissing 718&& !lockStatementNode.CloseParenToken.IsMissing 723&& !usingStatementNode.OpenParenToken.IsMissing 724&& !usingStatementNode.CloseParenToken.IsMissing 729&& !whileStatementNode.OpenParenToken.IsMissing 730&& !whileStatementNode.CloseParenToken.IsMissing
CompleteStatement\CompleteStatementCommandHandler.cs (4)
286if (currentNode is TypeDeclarationSyntax { OpenBraceToken.IsMissing: true }) 462if (separator.IsMissing) 541return dostatement.CloseParenToken.IsMissing; 544return forStatement.CloseParenToken.IsMissing;
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (4)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (2)
415Assert.False(token.IsMissing); 466Assert.False(token.IsMissing);
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (2)
373Assert.False(token.IsMissing); 385Assert.False(token.IsMissing);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests.cs (4)
775Assert.True(result.OpenParenToken.IsMissing); 777Assert.True(result.CloseParenToken.IsMissing); 785Assert.True(result.OpenParenToken.IsMissing); 787Assert.True(result.CloseParenToken.IsMissing);
Microsoft.CodeAnalysis.CSharp.Features (80)
Completion\CompletionProviders\ImportCompletion\ExtensionMethodImportCompletionProvider.cs (1)
40if (token.IsKind(SyntaxKind.None) || token.IsMissing)
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (1)
40if (token.IsKind(SyntaxKind.None) || token.IsMissing)
Debugging\BreakpointResolver.cs (2)
58if (parameterList.OpenParenToken.IsMissing || parameterList.CloseParenToken.IsMissing)
EditAndContinue\BreakpointSpans.cs (1)
770=> token2.IsKind(SyntaxKind.None) || token2.IsMissing ? token1 : token2;
GenerateType\CSharpGenerateTypeService.cs (1)
359if (objectCreationExpressionOpt.ArgumentList.CloseParenToken.IsMissing)
InlineHints\CSharpInlineTypeHintsService.cs (1)
36!variableDeclaration.Variables[0].Identifier.IsMissing)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (3)
47expressionStatement.SemicolonToken.IsMissing && 63if (expressionStatement.SemicolonToken.IsMissing && localDeclaration is { Declaration.Variables: [{ Initializer.Value: { } value }, ..] }) 79if (expressionStatement.SemicolonToken.IsMissing && deconstruction is { Expression: AssignmentExpressionSyntax binary })
InvertConditional\CSharpInvertConditionalCodeRefactoringProvider.cs (1)
28=> !conditional.ColonToken.IsMissing;
LineSeparators\CSharpLineSeparatorService.cs (16)
103if (typeDecl.OpenBraceToken.IsMissing || 104typeDecl.CloseBraceToken.IsMissing) 117if (enumDecl.OpenBraceToken.IsMissing || 118enumDecl.CloseBraceToken.IsMissing) 132(methodDecl.Body.OpenBraceToken.IsMissing || 133methodDecl.Body.CloseBraceToken.IsMissing)) 156return baseProperty.AccessorList.OpenBraceToken.IsMissing || 157baseProperty.AccessorList.CloseBraceToken.IsMissing; 165(constructorDecl.Body.OpenBraceToken.IsMissing || 166constructorDecl.Body.CloseBraceToken.IsMissing)) 180(destructorDecl.Body.OpenBraceToken.IsMissing || 181destructorDecl.Body.CloseBraceToken.IsMissing)) 195(operatorDecl.Body.OpenBraceToken.IsMissing || 196operatorDecl.Body.CloseBraceToken.IsMissing)) 210(conversionDecl.Body.OpenBraceToken.IsMissing || 211conversionDecl.Body.CloseBraceToken.IsMissing))
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
53if (namespaceDeclaration.OpenBraceToken.IsMissing)
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
92if (token.IsMissing)
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
73if (token.IsMissing)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
148if (identifier.IsMissing)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
72!parenthesizedExpression.CloseParenToken.IsMissing)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
44if (constraint.Type is not IdentifierNameSyntax { Identifier.IsMissing: true } type)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (4)
51if (!constructorInitializer.ArgumentList.CloseParenToken.IsMissing) 95!objectCreationExpression.ArgumentList.CloseParenToken.IsMissing) 127!attribute.ArgumentList.CloseParenToken.IsMissing) 156!implicitObjectCreation.ArgumentList.CloseParenToken.IsMissing)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (4)
59!methodDeclaration.ParameterList.OpenParenToken.IsMissing && 60!methodDeclaration.ParameterList.CloseParenToken.IsMissing) 110return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing; 124return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing;
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
42if (!recordKeyword.IsMissing)
Structure\CSharpStructureHelpers.cs (1)
347if (startToken.IsMissing)
Structure\Providers\AccessorDeclarationStructureProvider.cs (2)
25accessorDeclaration.Body.OpenBraceToken.IsMissing || 26accessorDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (2)
23anonymousMethod.Block.OpenBraceToken.IsMissing || 24anonymousMethod.Block.CloseBraceToken.IsMissing)
Structure\Providers\ArgumentListStructureProvider.cs (2)
31if (openToken.IsMissing || closeToken.IsMissing)
Structure\Providers\ConstructorDeclarationStructureProvider.cs (2)
25constructorDeclaration.Body.OpenBraceToken.IsMissing || 26constructorDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (2)
27operatorDeclaration.Body.OpenBraceToken.IsMissing || 28operatorDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\DestructorDeclarationStructureProvider.cs (2)
25destructorDeclaration.Body.OpenBraceToken.IsMissing || 26destructorDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\EnumDeclarationStructureProvider.cs (3)
23if (!enumDeclaration.OpenBraceToken.IsMissing && 24!enumDeclaration.CloseBraceToken.IsMissing) 45if (!enumDeclaration.CloseBraceToken.IsMissing)
Structure\Providers\EventDeclarationStructureProvider.cs (2)
26eventDeclaration.AccessorList.OpenBraceToken.IsMissing || 27eventDeclaration.AccessorList.CloseBraceToken.IsMissing)
Structure\Providers\IndexerDeclarationStructureProvider.cs (2)
26indexerDeclaration.AccessorList.OpenBraceToken.IsMissing || 27indexerDeclaration.AccessorList.CloseBraceToken.IsMissing)
Structure\Providers\InterpolatedStringExpressionStructureProvider.cs (2)
21if (node.StringStartToken.IsMissing || 22node.StringEndToken.IsMissing)
Structure\Providers\MethodDeclarationStructureProvider.cs (2)
25methodDeclaration.Body.OpenBraceToken.IsMissing || 26methodDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\NamespaceDeclarationStructureProvider.cs (3)
25if (!namespaceDeclaration.OpenBraceToken.IsMissing && 26!namespaceDeclaration.CloseBraceToken.IsMissing) 53if (!namespaceDeclaration.CloseBraceToken.IsMissing)
Structure\Providers\OperatorDeclarationStructureProvider.cs (2)
25operatorDeclaration.Body.OpenBraceToken.IsMissing || 26operatorDeclaration.Body.CloseBraceToken.IsMissing)
Structure\Providers\ParenthesizedLambdaExpressionStructureProvider.cs (2)
28lambdaBlock.OpenBraceToken.IsMissing || 29lambdaBlock.CloseBraceToken.IsMissing)
Structure\Providers\PropertyDeclarationStructureProvider.cs (2)
25propertyDeclaration.AccessorList.OpenBraceToken.IsMissing || 26propertyDeclaration.AccessorList.CloseBraceToken.IsMissing)
Structure\Providers\SimpleLambdaExpressionStructureProvider.cs (2)
28lambdaBlock.OpenBraceToken.IsMissing || 29lambdaBlock.CloseBraceToken.IsMissing)
Structure\Providers\TypeDeclarationStructureProvider.cs (3)
25if (!typeDeclaration.OpenBraceToken.IsMissing && 26!typeDeclaration.CloseBraceToken.IsMissing) 53if (!typeDeclaration.CloseBraceToken.IsMissing)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (464)
LexicalAndXml\PreprocessorTests.cs (8)
261Assert.True(setting.IsMissing); 262Assert.True(target.IsMissing); 311Assert.True(pwd.WarningKeyword.IsMissing); 320Assert.True(pwd.DisableOrRestoreKeyword.IsMissing); 364Assert.True(pcd.File.IsMissing); 370Assert.True(pcd.Guid.IsMissing); 376Assert.True(pcd.Bytes.IsMissing); 4425Assert.True(node.GetLoadDirectives().Single().File.IsMissing);
Parsing\DeclarationParsingTests.cs (110)
45Assert.False(ea.AliasKeyword.IsMissing); 1130Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1171Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1233Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1238Assert.False(bound.NewKeyword.IsMissing); 1240Assert.False(bound.OpenParenToken.IsMissing); 1242Assert.False(bound.CloseParenToken.IsMissing); 1277Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1282Assert.False(bound.ClassOrStructKeyword.IsMissing); 1318Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1323Assert.False(bound.ClassOrStructKeyword.IsMissing); 1359Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1365Assert.False(classBound.ClassOrStructKeyword.IsMissing); 1376Assert.False(bound.NewKeyword.IsMissing); 1378Assert.False(bound.OpenParenToken.IsMissing); 1380Assert.False(bound.CloseParenToken.IsMissing); 1415Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1426Assert.False(cs.ConstraintClauses[1].ColonToken.IsMissing); 1431Assert.False(bound.NewKeyword.IsMissing); 1433Assert.False(bound.OpenParenToken.IsMissing); 1435Assert.False(bound.CloseParenToken.IsMissing); 1470Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1481Assert.True(cs.ConstraintClauses[1].ColonToken.IsMissing); 1516Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1525Assert.True(cs.ConstraintClauses[1].ColonToken.IsMissing); 1564Assert.False(cs.ConstraintClauses[0].ColonToken.IsMissing); 1570Assert.False(classBound.ClassOrStructKeyword.IsMissing); 1581Assert.False(bound.NewKeyword.IsMissing); 1583Assert.False(bound.OpenParenToken.IsMissing); 1585Assert.False(bound.CloseParenToken.IsMissing); 2011Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2014Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2016Assert.False(ds.SemicolonToken.IsMissing); 2038Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2041Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2043Assert.False(ds.SemicolonToken.IsMissing); 2066Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2069Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2071Assert.False(ds.SemicolonToken.IsMissing); 2113Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2116Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2118Assert.False(ds.SemicolonToken.IsMissing); 2159Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2170Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2172Assert.False(ds.SemicolonToken.IsMissing); 2194Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2205Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2207Assert.False(ds.SemicolonToken.IsMissing); 2229Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2247Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2249Assert.False(ds.SemicolonToken.IsMissing); 2271Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2283Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2285Assert.False(ds.SemicolonToken.IsMissing); 2307Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2319Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2321Assert.False(ds.SemicolonToken.IsMissing); 2343Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2355Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2357Assert.False(ds.SemicolonToken.IsMissing); 2380Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2389Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2391Assert.False(ds.SemicolonToken.IsMissing); 2413Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2425Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2427Assert.False(ds.SemicolonToken.IsMissing); 2464Assert.False(ds.ParameterList.OpenParenToken.IsMissing); 2467Assert.False(ds.ParameterList.CloseParenToken.IsMissing); 2469Assert.False(ds.SemicolonToken.IsMissing); 2507Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2510Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2552Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2555Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2598Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2601Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2706Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2709Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2771Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2774Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2818Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2821Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 2868Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 2871Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3016Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3025Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3068Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3087Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3129Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3142Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3194Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3205Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3268Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3271Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3333Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3342Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3385Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3388Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3433Assert.False(ms.ParameterList.OpenParenToken.IsMissing); 3436Assert.False(ms.ParameterList.CloseParenToken.IsMissing); 3443Assert.False(ms.ConstraintClauses[0].ColonToken.IsMissing); 3634Assert.False(fs.SemicolonToken.IsMissing); 3694Assert.False(fs.SemicolonToken.IsMissing); 3735Assert.False(fs.SemicolonToken.IsMissing); 3790Assert.False(fs.SemicolonToken.IsMissing); 3848Assert.False(fs.SemicolonToken.IsMissing); 3892Assert.False(fs.SemicolonToken.IsMissing); 3937Assert.False(fs.SemicolonToken.IsMissing); 3991Assert.False(fs.SemicolonToken.IsMissing); 4054Assert.False(fs.SemicolonToken.IsMissing); 4100Assert.False(fs.SemicolonToken.IsMissing);
Parsing\ExpressionParsingTests.cs (163)
38Assert.True(((IdentifierNameSyntax)expr).Identifier.IsMissing); 433Assert.False(((IdentifierNameSyntax)expr).Identifier.IsMissing); 804Assert.False(openParen.IsMissing); 806Assert.False(closeParen.IsMissing); 887Assert.False(fs.OpenParenToken.IsMissing); 889Assert.False(fs.CloseParenToken.IsMissing); 937Assert.False(cs.OpenParenToken.IsMissing); 938Assert.False(cs.CloseParenToken.IsMissing); 958Assert.False(cs.ArgumentList.OpenParenToken.IsMissing); 959Assert.False(cs.ArgumentList.CloseParenToken.IsMissing); 979Assert.False(cs.ArgumentList.OpenParenToken.IsMissing); 980Assert.False(cs.ArgumentList.CloseParenToken.IsMissing); 1004Assert.False(cs.ArgumentList.OpenParenToken.IsMissing); 1005Assert.False(cs.ArgumentList.CloseParenToken.IsMissing); 1029Assert.False(cs.ArgumentList.OpenParenToken.IsMissing); 1030Assert.False(cs.ArgumentList.CloseParenToken.IsMissing); 1054Assert.False(ea.ArgumentList.OpenBracketToken.IsMissing); 1055Assert.False(ea.ArgumentList.CloseBracketToken.IsMissing); 1075Assert.False(ea.ArgumentList.OpenBracketToken.IsMissing); 1076Assert.False(ea.ArgumentList.CloseBracketToken.IsMissing); 1100Assert.False(ea.ArgumentList.OpenBracketToken.IsMissing); 1101Assert.False(ea.ArgumentList.CloseBracketToken.IsMissing); 1125Assert.False(ea.ArgumentList.OpenBracketToken.IsMissing); 1126Assert.False(ea.ArgumentList.CloseBracketToken.IsMissing); 1147Assert.False(oc.ArgumentList.OpenParenToken.IsMissing); 1148Assert.False(oc.ArgumentList.CloseParenToken.IsMissing); 1169Assert.False(oc.ArgumentList.OpenParenToken.IsMissing); 1170Assert.False(oc.ArgumentList.CloseParenToken.IsMissing); 1192Assert.False(oc.ArgumentList.OpenParenToken.IsMissing); 1193Assert.False(oc.ArgumentList.CloseParenToken.IsMissing); 1215Assert.False(oc.ArgumentList.OpenParenToken.IsMissing); 1216Assert.False(oc.ArgumentList.CloseParenToken.IsMissing); 1224Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1225Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1247Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1248Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1270Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1271Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1294Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1295Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1320Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1321Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1344Assert.False(oc.Initializer.OpenBraceToken.IsMissing); 1345Assert.False(oc.Initializer.CloseBraceToken.IsMissing); 1848Assert.False(ac.Initializer.OpenBraceToken.IsMissing); 1849Assert.False(ac.Initializer.CloseBraceToken.IsMissing); 1870Assert.False(ac.Initializer.OpenBraceToken.IsMissing); 1871Assert.False(ac.Initializer.CloseBraceToken.IsMissing); 1894Assert.False(ac.Initializer.OpenBraceToken.IsMissing); 1895Assert.False(ac.Initializer.CloseBraceToken.IsMissing); 1914Assert.False(ac.Initializer.OpenBraceToken.IsMissing); 1915Assert.False(ac.Initializer.CloseBraceToken.IsMissing); 1934Assert.False(ac.OpenBraceToken.IsMissing); 1935Assert.False(ac.CloseBraceToken.IsMissing); 1954Assert.False(am.DelegateKeyword.IsMissing); 1959Assert.False(am.ParameterList.OpenParenToken.IsMissing); 1960Assert.False(am.ParameterList.CloseParenToken.IsMissing); 1967Assert.False(am.Block.OpenBraceToken.IsMissing); 1968Assert.False(am.Block.CloseBraceToken.IsMissing); 1985Assert.False(am.DelegateKeyword.IsMissing); 1990Assert.False(am.ParameterList.OpenParenToken.IsMissing); 1991Assert.False(am.ParameterList.CloseParenToken.IsMissing); 1997Assert.False(am.Block.OpenBraceToken.IsMissing); 1998Assert.False(am.Block.CloseBraceToken.IsMissing); 2015Assert.False(am.DelegateKeyword.IsMissing); 2022Assert.False(am.Block.OpenBraceToken.IsMissing); 2023Assert.False(am.Block.CloseBraceToken.IsMissing); 2039Assert.False(lambda.Parameter.Identifier.IsMissing); 2057Assert.False(lambda.Parameter.Identifier.IsMissing); 2075Assert.False(lambda.Parameter.Identifier.IsMissing); 2096Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2097Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2116Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2117Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2136Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2137Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2158Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2159Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2182Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2183Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2209Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2210Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2234Assert.False(lambda.ParameterList.OpenParenToken.IsMissing); 2235Assert.False(lambda.ParameterList.CloseParenToken.IsMissing); 2261Assert.False(tuple.OpenParenToken.IsMissing); 2262Assert.False(tuple.CloseParenToken.IsMissing); 2281Assert.False(tuple.OpenParenToken.IsMissing); 2282Assert.False(tuple.CloseParenToken.IsMissing); 2306Assert.False(fs.FromKeyword.IsMissing); 2310Assert.False(fs.InKeyword.IsMissing); 2317Assert.False(ss.SelectKeyword.IsMissing); 2339Assert.False(fs.FromKeyword.IsMissing); 2344Assert.False(fs.InKeyword.IsMissing); 2350Assert.False(ss.SelectKeyword.IsMissing); 2373Assert.False(fs.FromKeyword.IsMissing); 2377Assert.False(fs.InKeyword.IsMissing); 2383Assert.False(ss.SelectKeyword.IsMissing); 2390Assert.False(qs.Body.Continuation.IntoKeyword.IsMissing); 2400Assert.False(ss.SelectKeyword.IsMissing); 2423Assert.False(fs.FromKeyword.IsMissing); 2427Assert.False(fs.InKeyword.IsMissing); 2434Assert.False(ws.WhereKeyword.IsMissing); 2441Assert.False(ss.SelectKeyword.IsMissing); 2463Assert.False(fs.FromKeyword.IsMissing); 2467Assert.False(fs.InKeyword.IsMissing); 2474Assert.False(fs.FromKeyword.IsMissing); 2478Assert.False(fs.InKeyword.IsMissing); 2484Assert.False(ss.SelectKeyword.IsMissing); 2506Assert.False(fs.FromKeyword.IsMissing); 2510Assert.False(fs.InKeyword.IsMissing); 2518Assert.False(ls.LetKeyword.IsMissing); 2522Assert.False(ls.EqualsToken.IsMissing); 2529Assert.False(ss.SelectKeyword.IsMissing); 2551Assert.False(fs.FromKeyword.IsMissing); 2555Assert.False(fs.InKeyword.IsMissing); 2563Assert.False(obs.OrderByKeyword.IsMissing); 2574Assert.False(ss.SelectKeyword.IsMissing); 2596Assert.False(fs.FromKeyword.IsMissing); 2600Assert.False(fs.InKeyword.IsMissing); 2607Assert.False(obs.OrderByKeyword.IsMissing); 2623Assert.False(ss.SelectKeyword.IsMissing); 2645Assert.False(fs.FromKeyword.IsMissing); 2649Assert.False(fs.InKeyword.IsMissing); 2656Assert.False(obs.OrderByKeyword.IsMissing); 2662Assert.False(os.AscendingOrDescendingKeyword.IsMissing); 2671Assert.False(ss.SelectKeyword.IsMissing); 2693Assert.False(fs.FromKeyword.IsMissing); 2697Assert.False(fs.InKeyword.IsMissing); 2704Assert.False(obs.OrderByKeyword.IsMissing); 2710Assert.False(os.AscendingOrDescendingKeyword.IsMissing); 2719Assert.False(ss.SelectKeyword.IsMissing); 2740Assert.False(fs.FromKeyword.IsMissing); 2744Assert.False(fs.InKeyword.IsMissing); 2751Assert.False(gbs.GroupKeyword.IsMissing); 2756Assert.False(gbs.ByKeyword.IsMissing); 2779Assert.False(fs.FromKeyword.IsMissing); 2783Assert.False(fs.InKeyword.IsMissing); 2789Assert.False(gbs.GroupKeyword.IsMissing); 2793Assert.False(gbs.ByKeyword.IsMissing); 2800Assert.False(qs.Body.Continuation.IntoKeyword.IsMissing); 2810Assert.False(ss.SelectKeyword.IsMissing); 2833Assert.False(fs.FromKeyword.IsMissing); 2837Assert.False(fs.InKeyword.IsMissing); 2844Assert.False(js.JoinKeyword.IsMissing); 2849Assert.False(js.InKeyword.IsMissing); 2854Assert.False(js.OnKeyword.IsMissing); 2859Assert.False(js.EqualsKeyword.IsMissing); 2867Assert.False(ss.SelectKeyword.IsMissing); 2889Assert.False(fs.FromKeyword.IsMissing); 2894Assert.False(fs.InKeyword.IsMissing); 2900Assert.False(js.JoinKeyword.IsMissing); 2906Assert.False(js.InKeyword.IsMissing); 2910Assert.False(js.OnKeyword.IsMissing); 2914Assert.False(js.EqualsKeyword.IsMissing); 2922Assert.False(ss.SelectKeyword.IsMissing); 2944Assert.False(fs.FromKeyword.IsMissing); 2948Assert.False(fs.InKeyword.IsMissing); 2954Assert.False(js.JoinKeyword.IsMissing); 2959Assert.False(js.InKeyword.IsMissing); 2963Assert.False(js.OnKeyword.IsMissing); 2967Assert.False(js.EqualsKeyword.IsMissing); 2972Assert.False(js.Into.IntoKeyword.IsMissing); 2979Assert.False(ss.SelectKeyword.IsMissing);
Parsing\NameParsingTests.cs (3)
37Assert.False(((IdentifierNameSyntax)name).Identifier.IsMissing); 50Assert.False(((IdentifierNameSyntax)name).Identifier.IsMissing); 63Assert.True(((IdentifierNameSyntax)name).Identifier.IsMissing);
Parsing\ParsingErrorRecoveryTests.cs (71)
6409Assert.False(pd.AccessorList.OpenBraceToken.IsMissing); 6411Assert.False(pd.AccessorList.CloseBraceToken.IsMissing); 6434Assert.False(pd.AccessorList.OpenBraceToken.IsMissing); 6436Assert.True(pd.AccessorList.CloseBraceToken.IsMissing); 6459Assert.False(pd.AccessorList.OpenBraceToken.IsMissing); 6461Assert.True(pd.AccessorList.CloseBraceToken.IsMissing); 6466Assert.False(acc.Keyword.IsMissing); 6470Assert.True(acc.SemicolonToken.IsMissing); 6494Assert.False(pd.AccessorList.OpenBraceToken.IsMissing); 6496Assert.True(pd.AccessorList.CloseBraceToken.IsMissing); 6501Assert.False(acc.Keyword.IsMissing); 6505Assert.False(acc.Body.OpenBraceToken.IsMissing); 6508Assert.True(acc.Body.CloseBraceToken.IsMissing); 6533Assert.False(pd.AccessorList.OpenBraceToken.IsMissing); 6535Assert.True(pd.AccessorList.CloseBraceToken.IsMissing); 6540Assert.False(acc.Keyword.IsMissing); 6544Assert.False(acc.Body.OpenBraceToken.IsMissing); 6547Assert.True(acc.Body.CloseBraceToken.IsMissing); 6576Assert.True(getBodyDecl.OpenBraceToken.IsMissing); 6606Assert.True(getDecl.SemicolonToken.IsMissing); 6611Assert.True(setDecl.SemicolonToken.IsMissing); 6635Assert.False(md.Body.OpenBraceToken.IsMissing); 6637Assert.False(md.Body.CloseBraceToken.IsMissing); 6651Assert.False(oc.OrderByKeyword.IsMissing); 6680Assert.False(md.Body.OpenBraceToken.IsMissing); 6682Assert.False(md.Body.CloseBraceToken.IsMissing); 6696Assert.False(oc.OrderByKeyword.IsMissing); 6724Assert.False(md.Body.OpenBraceToken.IsMissing); 6726Assert.False(md.Body.CloseBraceToken.IsMissing); 6740Assert.False(oc.OrderByKeyword.IsMissing); 6774Assert.False(md.Body.OpenBraceToken.IsMissing); 6776Assert.True(md.Body.CloseBraceToken.IsMissing); 6790Assert.False(oc.OrderByKeyword.IsMissing); 6822Assert.False(md.Body.OpenBraceToken.IsMissing); 6824Assert.True(md.Body.CloseBraceToken.IsMissing); 6838Assert.False(oc.OrderByKeyword.IsMissing); 6869Assert.False(md.Body.OpenBraceToken.IsMissing); 6871Assert.True(md.Body.CloseBraceToken.IsMissing); 6885Assert.False(oc.OrderByKeyword.IsMissing); 6916Assert.False(item1.OpenBraceToken.IsMissing); 6918Assert.False(item1.CloseBraceToken.IsMissing); 6923Assert.False(subitem1.Body.OpenBraceToken.IsMissing); 6924Assert.True(subitem1.Body.CloseBraceToken.IsMissing); 6928Assert.True(decl.SemicolonToken.IsMissing); 6931Assert.True(decl.Declaration.Variables[1].Identifier.IsMissing); 6941Assert.True(subitem2.OpenBraceToken.IsMissing); 6942Assert.True(subitem2.CloseBraceToken.IsMissing); 7305Assert.True(expressionStatement.SemicolonToken.IsMissing); 7938Assert.False(classDecl.Identifier.IsMissing); 7939Assert.True(classDecl.OpenBraceToken.IsMissing); 7940Assert.True(classDecl.CloseBraceToken.IsMissing); 7942Assert.False(ns.OpenBraceToken.IsMissing); 7943Assert.False(ns.CloseBraceToken.IsMissing); 7959Assert.False(classDecl.Identifier.IsMissing); 7960Assert.True(classDecl.OpenBraceToken.IsMissing); 7961Assert.True(classDecl.CloseBraceToken.IsMissing); 7963Assert.False(ns.SemicolonToken.IsMissing); 7980Assert.True(structDecl.OpenBraceToken.IsMissing); 7981Assert.True(structDecl.CloseBraceToken.IsMissing); 7983Assert.False(ns.OpenBraceToken.IsMissing); 7984Assert.False(ns.CloseBraceToken.IsMissing); 8003Assert.True(structDecl.Identifier.IsMissing); 8004Assert.False(structDecl.OpenBraceToken.IsMissing); 8005Assert.False(structDecl.CloseBraceToken.IsMissing); 8007Assert.False(ns.OpenBraceToken.IsMissing); 8008Assert.False(ns.CloseBraceToken.IsMissing); 8027Assert.True(classDecl.Identifier.IsMissing); 8028Assert.False(classDecl.OpenBraceToken.IsMissing); 8029Assert.False(classDecl.CloseBraceToken.IsMissing); 8031Assert.False(ns.OpenBraceToken.IsMissing); 8032Assert.False(ns.CloseBraceToken.IsMissing);
Parsing\StatementParsingTests.cs (94)
69Assert.False(es.SemicolonToken.IsMissing); 89Assert.False(es.SemicolonToken.IsMissing); 108Assert.False(es.SemicolonToken.IsMissing); 128Assert.False(es.SemicolonToken.IsMissing); 148Assert.False(es.SemicolonToken.IsMissing); 164Assert.False(es.SemicolonToken.IsMissing); 204Assert.False(ds.SemicolonToken.IsMissing); 234Assert.False(ds.SemicolonToken.IsMissing); 268Assert.False(ds.SemicolonToken.IsMissing); 309Assert.False(ds.SemicolonToken.IsMissing); 339Assert.False(ds.SemicolonToken.IsMissing); 365Assert.False(ds.SemicolonToken.IsMissing); 391Assert.False(ds.SemicolonToken.IsMissing); 417Assert.False(ds.SemicolonToken.IsMissing); 443Assert.False(ds.SemicolonToken.IsMissing); 469Assert.False(ds.SemicolonToken.IsMissing); 495Assert.False(ds.SemicolonToken.IsMissing); 530Assert.False(ds.SemicolonToken.IsMissing); 555Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 560Assert.False(ds.SemicolonToken.IsMissing); 584Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 592Assert.False(ds.Declaration.Variables[1].Initializer.EqualsToken.IsMissing); 600Assert.False(ds.Declaration.Variables[2].Initializer.EqualsToken.IsMissing); 605Assert.False(ds.SemicolonToken.IsMissing); 630Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 636Assert.False(ds.SemicolonToken.IsMissing); 662Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 667Assert.False(ds.SemicolonToken.IsMissing); 694Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 699Assert.False(ds.SemicolonToken.IsMissing); 726Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 731Assert.False(ds.SemicolonToken.IsMissing); 758Assert.False(ds.Declaration.Variables[0].Initializer.EqualsToken.IsMissing); 763Assert.False(ds.SemicolonToken.IsMissing); 789Assert.False(ds.SemicolonToken.IsMissing); 815Assert.False(initializer.EqualsToken.IsMissing); 820Assert.False(ds.SemicolonToken.IsMissing); 846Assert.False(initializer.EqualsToken.IsMissing); 856Assert.False(initializer.EqualsToken.IsMissing); 861Assert.False(ds.SemicolonToken.IsMissing); 877Assert.False(fs.FixedKeyword.IsMissing); 879Assert.False(fs.FixedKeyword.IsMissing); 904Assert.False(fs.FixedKeyword.IsMissing); 906Assert.False(fs.FixedKeyword.IsMissing); 934Assert.False(fs.FixedKeyword.IsMissing); 936Assert.False(fs.FixedKeyword.IsMissing); 962Assert.False(es.SemicolonToken.IsMissing); 999Assert.False(b.BreakKeyword.IsMissing); 1002Assert.False(b.SemicolonToken.IsMissing); 1018Assert.False(cs.ContinueKeyword.IsMissing); 1021Assert.False(cs.SemicolonToken.IsMissing); 1037Assert.False(gs.GotoKeyword.IsMissing); 1043Assert.False(gs.SemicolonToken.IsMissing); 1059Assert.False(gs.GotoKeyword.IsMissing); 1062Assert.False(gs.CaseOrDefaultKeyword.IsMissing); 1067Assert.False(gs.SemicolonToken.IsMissing); 1083Assert.False(gs.GotoKeyword.IsMissing); 1086Assert.False(gs.CaseOrDefaultKeyword.IsMissing); 1090Assert.False(gs.SemicolonToken.IsMissing); 1106Assert.False(rs.ReturnKeyword.IsMissing); 1110Assert.False(rs.SemicolonToken.IsMissing); 1126Assert.False(rs.ReturnKeyword.IsMissing); 1131Assert.False(rs.SemicolonToken.IsMissing); 1147Assert.False(ys.YieldKeyword.IsMissing); 1150Assert.False(ys.ReturnOrBreakKeyword.IsMissing); 1155Assert.False(ys.SemicolonToken.IsMissing); 1171Assert.False(ys.YieldKeyword.IsMissing); 1174Assert.False(ys.ReturnOrBreakKeyword.IsMissing); 1178Assert.False(ys.SemicolonToken.IsMissing); 1194Assert.False(ts.ThrowKeyword.IsMissing); 1198Assert.False(ts.SemicolonToken.IsMissing); 1214Assert.False(ts.ThrowKeyword.IsMissing); 1219Assert.False(ts.SemicolonToken.IsMissing); 1235Assert.False(ts.TryKeyword.IsMissing); 1265Assert.False(ts.TryKeyword.IsMissing); 1294Assert.False(ts.TryKeyword.IsMissing); 1318Assert.False(ts.TryKeyword.IsMissing); 1361Assert.False(ts.TryKeyword.IsMissing); 1384Assert.False(ts.TryKeyword.IsMissing); 1527Assert.False(fs.ForKeyword.IsMissing); 1553Assert.False(fs.ForKeyword.IsMissing); 1590Assert.False(fs.ForKeyword.IsMissing); 1629Assert.False(fs.ForKeyword.IsMissing); 1738Assert.False(fs.ForKeyword.IsMissing); 1767Assert.False(fs.ForKeyword.IsMissing); 1797Assert.False(fs.ForKeyword.IsMissing); 1827Assert.False(fs.ForKeyword.IsMissing); 1857Assert.False(fs.ForKeyword.IsMissing); 1888Assert.False(fs.ForKeyword.IsMissing); 1939Assert.False(fs.InKeyword.IsMissing); 1961Assert.True(fs.ForEachKeyword.IsMissing); 1972Assert.False(fs.InKeyword.IsMissing); 2003Assert.False(fs.InKeyword.IsMissing); 3387Assert.False(fs.InKeyword.IsMissing);
Syntax\StructuredTriviaTests.cs (2)
149Assert.True(directives[0].File.IsMissing); 150Assert.False(directives[1].File.IsMissing);
Syntax\SyntaxFactoryTests.cs (5)
66Assert.False(n.NamespaceKeyword.IsMissing); 68Assert.False(n.OpenBraceToken.IsMissing); 72Assert.False(n.CloseBraceToken.IsMissing); 88Assert.False(c.OpenBraceToken.IsMissing); 92Assert.False(c.CloseBraceToken.IsMissing);
Syntax\SyntaxNodeTests.cs (4)
974Assert.True(last.IsMissing); 2340var token = expr.DescendantTokens().First(t => t.IsMissing); 3444Assert.True(token.IsMissing); 3482All(token => token.IsMissing == (token.Width == 0)));
Syntax\SyntaxRewriterTests.cs (4)
564Assert.True(token1.IsMissing); 583Assert.True(token2.IsMissing); 610Assert.True(token1.IsMissing); 629Assert.True(token2.IsMissing);
Microsoft.CodeAnalysis.CSharp.Workspaces (37)
Classification\ClassificationHelpers.cs (1)
466return token.GetNextToken(includeZeroWidth: true).IsMissing;
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2191if (!rewrittenToken.IsMissing || !CSharp.SyntaxFacts.IsPunctuationOrKeyword(token.Kind()))
Formatting\TypingFormattingRule.cs (2)
61if (endToken.IsMissing) 107if (closeBrace.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (4)
23if (node.OpenParenToken.IsMissing || node.CloseParenToken.IsMissing) 688if (node.OpenParenToken.IsMissing || node.CloseParenToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
71if (declaration.CloseBraceToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
41if (token1.IsMissing && token1.FullWidth() == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
57bracketOrBracePair.openBracketOrBrace.IsMissing ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
72if (node is CollectionExpressionSyntax { OpenBracketToken.IsMissing: false, CloseBracketToken.IsMissing: false } collectionExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
361if (lastToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (2)
70if (fromClause.InKeyword.IsMissing) 102if (!baseToken.IsMissing && !baseToken.Equals(endToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (6)
233if (!tryStatement.TryKeyword.IsMissing && tryStatement.Block != null && !tryStatement.Block.CloseBraceToken.IsMissing) 242if (!catchClause.CatchKeyword.IsMissing && catchClause.Block != null && !catchClause.Block.CloseBraceToken.IsMissing) 251if (!finallyClause.FinallyKeyword.IsMissing && finallyClause.Block != null && !finallyClause.Block.CloseBraceToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
830return identifier.IsMissing ? missingTokenPlaceholder : identifier.Text; 853name = nameToken.IsMissing ? missingTokenPlaceholder : nameToken.Text; 882name = nameToken.IsMissing ? missingTokenPlaceholder : nameToken.Text;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
195=> declaration.ChildTokens().Where(t => t.Kind() is SyntaxKind.OpenBraceToken or SyntaxKind.CloseBraceToken && t.IsMissing).Any();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1586if (parenthesizedLambda.ArrowToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
173genericName.TypeArgumentList.LessThanToken == lessThanToken && !genericName.TypeArgumentList.GreaterThanToken.IsMissing;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (2)
59if (lastToken.IsMissing) 100if (token.IsMissing || token.IsKind(SyntaxKind.None))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (6)
90if (previousToken.Kind() == SyntaxKind.None || previousToken.IsMissing) 143!constructorInitializer.ThisOrBaseKeyword.IsMissing) 150var colonIsFirstTokenOnLine = !constructorInitializer.ColonToken.IsMissing && constructorInitializer.ColonToken.IsFirstTokenOnLine(text); 151var thisOrBaseIsFirstTokenOnLine = !constructorInitializer.ThisOrBaseKeyword.IsMissing && constructorInitializer.ThisOrBaseKeyword.IsFirstTokenOnLine(text); 171=> node != null && node.OpenBracketToken.IsMissing && node.CloseBracketToken.IsMissing;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
94if (braces.closeBrace.IsMissing)
Microsoft.CodeAnalysis.Features (7)
ExtractMethod\MethodExtractor.Analyzer.SymbolMapBuilder.cs (1)
61if (token.IsMissing ||
SignatureHelp\CommonSignatureHelpUtilities.cs (2)
60if (!closeToken.IsMissing && position > closeToken.SpanStart) 87if (closeToken.RawKind != 0 && !closeToken.IsMissing)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
72if (endToken.IsMissing)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
138if (valuePattern == default || valuePattern.IsMissing)
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (2)
62if (firstToken.IsMissing || lastToken.IsMissing || firstToken.Span.IsEmpty || lastToken.Span.IsEmpty)
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\XmlHelpers.cs (1)
168new XAttribute("IsMissing", token.IsMissing));
Microsoft.CodeAnalysis.VisualBasic (6)
Syntax\VisualBasicLineDirectiveMap.vb (2)
46If Not extSourceDirective.LineStart.IsMissing AndAlso 47Not extSourceDirective.ExternalSource.IsMissing Then
Syntax\VisualBasicWarningStateMap.vb (4)
31If (Not w.EnableKeyword.IsMissing) AndAlso (Not w.EnableKeyword.ContainsDiagnostics) AndAlso 32(Not w.WarningKeyword.IsMissing) AndAlso (Not w.WarningKeyword.ContainsDiagnostics) Then 37If (Not w.DisableKeyword.IsMissing) AndAlso (Not w.DisableKeyword.ContainsDiagnostics) AndAlso 38(Not w.WarningKeyword.IsMissing) AndAlso (Not w.WarningKeyword.ContainsDiagnostics) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (2)
47If node.OpenParenToken.IsMissing OrElse node.CloseParenToken.IsMissing Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1002Return If(identifier.IsMissing, missingTokenPlaceholder, identifier.Text)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (14)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (3)
66If invocation.ArgumentList IsNot Nothing AndAlso Not invocation.ArgumentList.CloseParenToken.IsMissing Then 106Not objectCreationExpression.ArgumentList.CloseParenToken.IsMissing Then 141Not attribute.ArgumentList.CloseParenToken.IsMissing Then
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateMethodService.vb (2)
118Not invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing 122Not invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\IsStatementTerminatingTokenVisitor.vb (1)
135Return token.Kind <> SyntaxKind.None AndAlso Not token.IsMissing AndAlso _targetToken = token
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (2)
19Loop While token.IsMissing 71Loop While token.IsMissing
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
837Not terminatingToken.IsMissing AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (1)
116argumentList.OpenParenToken.IsMissing OrElse
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (2)
103If token.Span.End <= trivia.SpanStart AndAlso Not token.IsMissing Then 196If lastVisibleTokenOnPreviousLine.GetNextToken(includeZeroWidth:=True).IsMissing Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.vb (2)
77If previousToken.IsMissing AndAlso neverUseWhenHavingMissingToken Then 79ElseIf previousToken.IsMissing Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (14)
AutomaticCompletion\AutomaticLineEnderCommandHandler.vb (2)
81If Not lastToken.IsMissing AndAlso lastToken.IsLastTokenOfStatementWithEndOfLine() Then 86Dim nonMissingToken = If(lastToken.IsMissing, lastToken.GetPreviousToken(), lastToken)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (7)
187Dim hasValidToken = pairToken.Kind <> SyntaxKind.None AndAlso Not pairToken.IsMissing AndAlso token.ValueText = pairToken.ValueText 231Return pairToken.Kind <> SyntaxKind.None AndAlso Not pairToken.IsMissing AndAlso token.ValueText = pairToken.ValueText 251Dim hasValidToken = pairToken.Kind <> SyntaxKind.None AndAlso Not pairToken.IsMissing AndAlso token = pairToken 267Function(context As TypeStatementSyntax) Not context.Identifier.IsMissing, 268Function(context As EnumStatementSyntax) Not context.Identifier.IsMissing, 270Function(context As MethodStatementSyntax) Not context.Identifier.IsMissing, 271Function(context As AccessorStatementSyntax) Not context.DeclarationKeyword.IsMissing,
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (4)
48(newHeader.ParameterList.OpenParenToken.IsMissing AndAlso newHeader.ParameterList.CloseParenToken.IsMissing) Then 139If node.ParameterList Is Nothing OrElse (node.ParameterList.OpenParenToken.IsMissing AndAlso node.ParameterList.CloseParenToken.IsMissing) Then
LineCommit\ContainingStatementInfo.vb (1)
22IsIncomplete = node.GetLastToken(includeZeroWidth:=True).IsMissing
Microsoft.CodeAnalysis.VisualBasic.Features (17)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (2)
112If continueStatement.BlockKeyword.IsMissing Then 144If exitStatement.BlockKeyword.IsMissing Then
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
214If Not nameToken.IsMissing AndAlso nameToken.ValueText.Length > 0 Then
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (1)
30If forStatement.EqualsToken = Nothing OrElse forStatement.EqualsToken.IsMissing Then
Debugging\BreakpointResolver.vb (2)
61If (parameterList.OpenParenToken.IsMissing OrElse parameterList.CloseParenToken.IsMissing) Then
GenerateType\VisualBasicGenerateTypeService.vb (1)
273If objectCreationExpressionOpt.ArgumentList.CloseParenToken.IsMissing Then
InvertConditional\VisualBasicInvertConditionalCodeRefactoringProvider.vb (3)
25Return Not conditional.FirstCommaToken.IsMissing AndAlso 26Not conditional.SecondCommaToken.IsMissing AndAlso 27Not conditional.CloseParenToken.IsMissing
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (3)
66If invocation.ArgumentList IsNot Nothing AndAlso Not invocation.ArgumentList.CloseParenToken.IsMissing Then 106Not objectCreationExpression.ArgumentList.CloseParenToken.IsMissing Then 141Not attribute.ArgumentList.CloseParenToken.IsMissing Then
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateMethodService.vb (2)
118Not invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing 122Not invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing
Structure\Providers\InterpolatedStringExpressionStructureProvider.vb (2)
19If node.DollarSignDoubleQuoteToken.IsMissing OrElse 20node.DoubleQuoteToken.IsMissing Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (85)
Parser\ParseAttributes.vb (1)
81Assert.True(attrList.GreaterThanToken.IsMissing)
Parser\ParseDirectives.vb (74)
1734Assert.False(enableNode.EnableKeyword.IsMissing) 1736Assert.True(enableNode.WarningKeyword.IsMissing) 1754Assert.False(disableNode.DisableKeyword.IsMissing) 1756Assert.True(disableNode.WarningKeyword.IsMissing) 1776Assert.False(disableNode.DisableKeyword.IsMissing) 1778Assert.True(disableNode.WarningKeyword.IsMissing) 1800Assert.False(disableNode.DisableKeyword.IsMissing) 1802Assert.True(disableNode.WarningKeyword.IsMissing) 1822Assert.False(enableNode.EnableKeyword.IsMissing) 1824Assert.True(enableNode.WarningKeyword.IsMissing) 1851Assert.False(disableNode.DisableKeyword.IsMissing) 1853Assert.True(disableNode.WarningKeyword.IsMissing) 1871Assert.False(disableNode.DisableKeyword.IsMissing) 1873Assert.True(disableNode.WarningKeyword.IsMissing) 1893Assert.False(disableNode.DisableKeyword.IsMissing) 1895Assert.True(disableNode.WarningKeyword.IsMissing) 1912Assert.False(enableNode.EnableKeyword.IsMissing) 1914Assert.False(enableNode.WarningKeyword.IsMissing) 1937Assert.False(enableNode.EnableKeyword.IsMissing) 1939Assert.False(enableNode.WarningKeyword.IsMissing) 1963Assert.False(enableNode.EnableKeyword.IsMissing) 1965Assert.False(enableNode.WarningKeyword.IsMissing) 1986Assert.False(enableNode.EnableKeyword.IsMissing) 1988Assert.False(enableNode.WarningKeyword.IsMissing) 2009Assert.False(enableNode.EnableKeyword.IsMissing) 2011Assert.False(enableNode.WarningKeyword.IsMissing) 2038Assert.False(enableNode.EnableKeyword.IsMissing) 2040Assert.False(enableNode.WarningKeyword.IsMissing) 2063Assert.False(enableNode.EnableKeyword.IsMissing) 2065Assert.False(enableNode.WarningKeyword.IsMissing) 2093Assert.False(enableNode.EnableKeyword.IsMissing) 2095Assert.False(enableNode.WarningKeyword.IsMissing) 2115Assert.False(enableNode.EnableKeyword.IsMissing) 2117Assert.False(enableNode.WarningKeyword.IsMissing) 2141Assert.False(enableNode.EnableKeyword.IsMissing) 2143Assert.False(enableNode.WarningKeyword.IsMissing) 2163Assert.False(enableNode.EnableKeyword.IsMissing) 2165Assert.False(enableNode.WarningKeyword.IsMissing) 2201Assert.False(disableNode.DisableKeyword.IsMissing) 2203Assert.False(disableNode.WarningKeyword.IsMissing) 2236Assert.False(disableNode.DisableKeyword.IsMissing) 2238Assert.False(disableNode.WarningKeyword.IsMissing) 2262Assert.False(disableNode.DisableKeyword.IsMissing) 2264Assert.False(disableNode.WarningKeyword.IsMissing) 2294Assert.False(disableNode.DisableKeyword.IsMissing) 2296Assert.False(disableNode.WarningKeyword.IsMissing) 2322Assert.False(disableNode.DisableKeyword.IsMissing) 2324Assert.False(disableNode.WarningKeyword.IsMissing) 2350Assert.False(enableNode.EnableKeyword.IsMissing) 2352Assert.False(enableNode.WarningKeyword.IsMissing) 2372Assert.False(enableNode.EnableKeyword.IsMissing) 2374Assert.False(enableNode.WarningKeyword.IsMissing) 2394Assert.False(enableNode.EnableKeyword.IsMissing) 2396Assert.False(enableNode.WarningKeyword.IsMissing) 2411Assert.False(enableNode.EnableKeyword.IsMissing) 2419Assert.False(enableNode.WarningKeyword.IsMissing) 2435Assert.False(enableNode.EnableKeyword.IsMissing) 2437Assert.False(enableNode.WarningKeyword.IsMissing) 2458Assert.False(enableNode.EnableKeyword.IsMissing) 2460Assert.False(enableNode.WarningKeyword.IsMissing) 2482Assert.False(enableNode.EnableKeyword.IsMissing) 2484Assert.False(enableNode.WarningKeyword.IsMissing) 2502Assert.False(enableNode.EnableKeyword.IsMissing) 2504Assert.False(enableNode.WarningKeyword.IsMissing) 2530Assert.False(enableNode.EnableKeyword.IsMissing) 2532Assert.True(enableNode.WarningKeyword.IsMissing) 2554Assert.False(enableNode.EnableKeyword.IsMissing) 2556Assert.False(enableNode.WarningKeyword.IsMissing) 2599Assert.False(enableNode.EnableKeyword.IsMissing) 2601Assert.False(enableNode.WarningKeyword.IsMissing) 2616Assert.False(enableNode.EnableKeyword.IsMissing) 2618Assert.False(enableNode.WarningKeyword.IsMissing) 2636Assert.False(disableNode.DisableKeyword.IsMissing) 2638Assert.True(disableNode.WarningKeyword.IsMissing)
Parser\ParseExpression.vb (3)
237Assert.True(exp.CommaToken.IsMissing, "IsMissing Not True") 1114Assert.True(lastToken.IsMissing) 1138Assert.False(lastToken.IsMissing)
TestSyntaxNodes.vb (7)
907Assert.False(ident.IsMissing) 909Assert.True(ident.IsMissing) 912Assert.False(punc.IsMissing) 914Assert.True(punc.IsMissing) 917Assert.False(kw.IsMissing) 919Assert.True(kw.IsMissing) 922Assert.False(eof.IsMissing) ' end of text token is never missing, even though it is zero length.
Microsoft.CodeAnalysis.VisualBasic.Workspaces (32)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (4)
72If newToken.IsMissing OrElse TypeOf newToken.Parent Is ArgumentSyntax OrElse _semanticModel Is Nothing Then 253If Not token.IsMissing Then 266If Not token.IsMissing Then 287If Not token.IsMissing Then
Classification\Worker.XmlClassifier.vb (3)
251If Not element.LocalName.IsMissing Then 303If Not syntax.Token2.IsMissing Then 307If Not syntax.Token3.IsMissing Then
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (7)
310paramList.OpenParenToken.IsMissing AndAlso 311paramList.CloseParenToken.IsMissing 317argsList.OpenParenToken.IsMissing AndAlso 318argsList.CloseParenToken.IsMissing 458If Not originalToken.IsMissing OrElse 547If previousToken.IsMissing OrElse previousToken.IsSkipped OrElse previousToken.Kind = 0 Then 558If nextToken.IsMissing OrElse nextToken.IsSkipped Then
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (2)
179If curEndKeyword.IsMissing AndAlso curIfKeyword.IsMissing Then
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (3)
238If Not binaryOperator.OperatorToken.IsMissing Then 276If token.IsMissing OrElse Not (SyntaxFacts.IsOperator(token.Kind) OrElse token.IsKind(SyntaxKind.ColonEqualsToken)) Then 295If Not node.OperatorToken.IsMissing Then
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
125If token1.IsLastTokenOfStatement() AndAlso Not token1.IsMissing Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (2)
47If node.OpenParenToken.IsMissing OrElse node.CloseParenToken.IsMissing Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1002Return If(identifier.IsMissing, missingTokenPlaceholder, identifier.Text)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\IsStatementTerminatingTokenVisitor.vb (1)
135Return token.Kind <> SyntaxKind.None AndAlso Not token.IsMissing AndAlso _targetToken = token
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (2)
19Loop While token.IsMissing 71Loop While token.IsMissing
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
837Not terminatingToken.IsMissing AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (1)
116argumentList.OpenParenToken.IsMissing OrElse
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (2)
103If token.Span.End <= trivia.SpanStart AndAlso Not token.IsMissing Then 196If lastVisibleTokenOnPreviousLine.GetNextToken(includeZeroWidth:=True).IsMissing Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.vb (2)
77If previousToken.IsMissing AndAlso neverUseWhenHavingMissingToken Then 79ElseIf previousToken.IsMissing Then
Microsoft.CodeAnalysis.Workspaces (13)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
150=> !token.IsMissing && this.SyntaxFacts.IsIdentifier(token) && this.SyntaxFacts.TextMatch(token.ValueText, identifier);
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (2)
23if (token.IsMissing || token.ValueText == null) 66if (token.IsMissing || token.ValueText == null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
950if (!token.IsMissing) 968if (!current.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
349if (operation.TextSpan.End == position && nextToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
452if (token1.IsMissing || token2.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
548if ((this.Token1.IsMissing && trivia1.RawKind == 0) || 549(trivia2.RawKind == 0 && this.Token2.IsMissing))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
90if (startToken.IsMissing) 108if (endToken.IsMissing)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
34if (lastToken.IsMissing)
Microsoft.VisualStudio.LanguageServices.CSharp (23)
CodeModel\CSharpCodeModelService.NodeLocator.cs (23)
137Debug.Assert(!openBrace.IsMissing); 149Debug.Assert(!openBrace.IsMissing); 150Debug.Assert(!closeBrace.IsMissing); 339if (node.OpenBraceToken.IsMissing || node.CloseBraceToken.IsMissing) 383if (node.Body != null && !node.Body.OpenBraceToken.IsMissing) 418if (node.Body == null || node.Body.OpenBraceToken.IsMissing || node.Body.CloseBraceToken.IsMissing) 479else if (!firstAccessorNode.SemicolonToken.IsMissing) 490if (node.AccessorList != null && !node.AccessorList.OpenBraceToken.IsMissing) 529if (node.Body != null && !node.Body.OpenBraceToken.IsMissing) 541node.Body.OpenBraceToken.IsMissing || 542node.Body.CloseBraceToken.IsMissing) 584if (namespaceDeclaration.OpenBraceToken.IsMissing || namespaceDeclaration.CloseBraceToken.IsMissing) 949if (node.Body != null && !node.Body.CloseBraceToken.IsMissing) 981if (node.Body == null || node.Body.OpenBraceToken.IsMissing || node.Body.CloseBraceToken.IsMissing) 1041if (node.AccessorList != null && !node.AccessorList.CloseBraceToken.IsMissing) 1079node.Body.OpenBraceToken.IsMissing || 1080node.Body.CloseBraceToken.IsMissing) 1163if (namespaceDeclaration.OpenBraceToken.IsMissing || namespaceDeclaration.CloseBraceToken.IsMissing)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
Help\VisualBasicHelpContextService.Visitor.vb (3)
81If Not node.BlockKeyword.IsMissing Then 110If Not node.IntoKeyword.IsMissing Then 487If Not node.NameKeyword.IsMissing Then