9 references to QuestionToken
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Symbols.cs (2)
548
MessageID.IDS_FeatureNullable.CheckFeatureAvailability(diagnostics, nullableSyntax.
QuestionToken
);
554
reportNullableReferenceTypesIfNeeded(nullableSyntax.
QuestionToken
, typeArgument);
Symbols\AliasSymbol.cs (1)
412
diagnostics.Add(ErrorCode.ERR_BadNullableReferenceTypeInUsingAlias, nullableType.
QuestionToken
.GetLocation());
Syntax.xml.Main.Generated.cs (1)
1549
=> node.Update((TypeSyntax?)Visit(node.ElementType) ?? throw new ArgumentNullException("elementType"), VisitToken(node.
QuestionToken
));
Syntax.xml.Syntax.Generated.cs (2)
821
if (elementType != this.ElementType || questionToken != this.
QuestionToken
)
831
public NullableTypeSyntax WithElementType(TypeSyntax elementType) => Update(elementType, this.
QuestionToken
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
11271
Assert.Equal(SyntaxKind.QuestionToken, node.
QuestionToken
.Kind());
11272
var newNode = node.WithElementType(node.ElementType).WithQuestionToken(node.
QuestionToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
59
return node.ElementType.WithAppendedTrailingTrivia(node.
QuestionToken
.GetAllTrivia());