73 references to TypeSyntax
Microsoft.CodeAnalysis.CSharp (73)
Parser\DocumentationCommentParser.cs (10)
891TypeSyntax type = ParseCrefType(typeArgumentsMustBeIdentifiers: true, checkForMember: true); 1148TypeSyntax type = ParseCrefType(typeArgumentsMustBeIdentifiers: false); 1275TypeSyntax type = ParseCrefType(typeArgumentsMustBeIdentifiers: false); 1295var list = _pool.AllocateSeparated<TypeSyntax>(); 1300TypeSyntax typeSyntax = ParseCrefType(typeArgumentsMustBeIdentifiers); 1348private TypeSyntax ParseCrefType(bool typeArgumentsMustBeIdentifiers, bool checkForMember = false) 1350TypeSyntax typeWithoutSuffix = ParseCrefTypeHelper(typeArgumentsMustBeIdentifiers, checkForMember); 1368private TypeSyntax ParseCrefTypeHelper(bool typeArgumentsMustBeIdentifiers, bool checkForMember = false) 1442private TypeSyntax ParseCrefTypeSuffix(TypeSyntax type)
Parser\LanguageParser.cs (54)
976TypeSyntax type; 2101var firstType = this.ParseType(); 2683TypeSyntax type = ParseReturnType(); 2957private bool IsMisplacedModifier(SyntaxListBuilder modifiers, SyntaxList<AttributeListSyntax> attributes, TypeSyntax type, out MemberDeclarationSyntax result) 2979private bool IsNoneOrIncompleteMember(SyntaxKind parentKind, SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type, 3020private bool ReconsideredTypeAsAsyncModifier(ref SyntaxListBuilder modifiers, ref TypeSyntax type, ref ResetPoint afterTypeResetPoint, 3043private bool TryParseIndexerOrPropertyDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type, 3161TypeSyntax type = ParseReturnType(); 3252TypeSyntax type, 3518TypeSyntax type, 3577private TypeSyntax ParseReturnType() 3581var type = this.ParseTypeOrVoid(); 3693TypeSyntax type; 3843TypeSyntax type, 4013TypeSyntax type, 4073TypeSyntax type, 4763var type = this.ParseType(mode: ParseTypeMode.Parameter); 4860var type = this.ParseType(); 4877var type = this.ParseType(); 4888TypeSyntax type) 4990TypeSyntax type, 5013TypeSyntax type, 5050TypeSyntax type, VariableFlags flags, SyntaxKind parentKind) 5082TypeSyntax type, 5272TypeSyntax parentType, 5554var type = this.ParseType(); 5569var type = this.ParseReturnType(); 5617var type = this.ParseType(); 5950var types = _pool.AllocateSeparated<TypeSyntax>(); 6289private void ParseTypeArgumentList(out SyntaxToken open, SeparatedSyntaxListBuilder<TypeSyntax> types, out SyntaxToken close) 6414private PostSkipAction SkipBadTypeArgumentListTokens(SeparatedSyntaxListBuilder<TypeSyntax> list, SyntaxKind expected) 6425private TypeSyntax ParseTypeArgument() 6448var result = this.ParseType(); 7285public TypeSyntax ParseTypeName() 7290private TypeSyntax ParseTypeOrVoid() 7315private TypeSyntax ParseType(ParseTypeMode mode = ParseTypeMode.Normal) 7328private TypeSyntax ParseTypeCore(ParseTypeMode mode) 7359var type = this.ParseUnderlyingType(mode, options: nameOptions); 7432TypeSyntax typeParsedSoFar, ParseTypeMode mode) 7722private TypeSyntax ParseUnderlyingType(ParseTypeMode mode, NameOptions options = NameOptions.None) 7926private TypeSyntax ParsePointerTypeMods(TypeSyntax type) 8018var returnType = this.ParseReturnType(); 9095var type = this.ParseType(); 10150out var type, 10358out var type, 10374out TypeSyntax type, 10547TypeSyntax type, 11532var type = this.ParseType(mode); 11551TypeSyntax type => _syntaxFactory.BinaryExpression(SyntaxKind.IsExpression, leftOperand, opToken, type), 12939TypeSyntax type = null; 13432TypeSyntax returnType; 13546var paramType = ShouldParseLambdaParameterType() 13777var type = this.PeekToken(1).Kind != SyntaxKind.InKeyword
Parser\LanguageParser_Patterns.cs (3)
217TypeSyntax? type = null; 269private PatternSyntax? ParsePatternContinued(TypeSyntax? type, Precedence precedence, bool inSwitchArmPattern) 454private bool ConvertTypeToExpression(TypeSyntax type, [NotNullWhen(true)] out ExpressionSyntax? expr, bool permitTypeArguments = false)
Syntax\SyntaxFactory.cs (1)
1719var node = parser.ParseTypeName();
Syntax\TypeSyntax.cs (5)
9public bool IsVar => ((InternalSyntax.TypeSyntax)this.Green).IsVar; 11public bool IsUnmanaged => ((InternalSyntax.TypeSyntax)this.Green).IsUnmanaged; 13public bool IsNotNull => ((InternalSyntax.TypeSyntax)this.Green).IsNotNull; 15public bool IsNint => ((InternalSyntax.TypeSyntax)this.Green).IsNint; 17public bool IsNuint => ((InternalSyntax.TypeSyntax)this.Green).IsNuint;