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)
977TypeSyntax type; 2067var firstType = this.ParseType(); 2643TypeSyntax type = ParseReturnType(); 2917private bool IsMisplacedModifier(SyntaxListBuilder modifiers, SyntaxList<AttributeListSyntax> attributes, TypeSyntax type, out MemberDeclarationSyntax result) 2939private bool IsNoneOrIncompleteMember(SyntaxKind parentKind, SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type, 2980private bool ReconsideredTypeAsAsyncModifier(ref SyntaxListBuilder modifiers, ref TypeSyntax type, ref ResetPoint afterTypeResetPoint, 3003private bool TryParseIndexerOrPropertyDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type, 3116TypeSyntax type = ParseReturnType(); 3202TypeSyntax type, 3468TypeSyntax type, 3527private TypeSyntax ParseReturnType() 3531var type = this.ParseTypeOrVoid(); 3643TypeSyntax type; 3793TypeSyntax type, 3963TypeSyntax type, 4023TypeSyntax type, 4699var type = this.ParseType(mode: ParseTypeMode.Parameter); 4790var type = this.ParseType(); 4807var type = this.ParseType(); 4818TypeSyntax type) 4920TypeSyntax type, 4943TypeSyntax type, 4980TypeSyntax type, VariableFlags flags, SyntaxKind parentKind) 5012TypeSyntax type, 5201TypeSyntax parentType, 5483var type = this.ParseType(); 5498var type = this.ParseReturnType(); 5546var type = this.ParseType(); 5879var types = _pool.AllocateSeparated<TypeSyntax>(); 6218private void ParseTypeArgumentList(out SyntaxToken open, SeparatedSyntaxListBuilder<TypeSyntax> types, out SyntaxToken close) 6343private PostSkipAction SkipBadTypeArgumentListTokens(SeparatedSyntaxListBuilder<TypeSyntax> list, SyntaxKind expected) 6354private TypeSyntax ParseTypeArgument() 6377var result = this.ParseType(); 7214public TypeSyntax ParseTypeName() 7219private TypeSyntax ParseTypeOrVoid() 7244private TypeSyntax ParseType(ParseTypeMode mode = ParseTypeMode.Normal) 7257private TypeSyntax ParseTypeCore(ParseTypeMode mode) 7288var type = this.ParseUnderlyingType(mode, options: nameOptions); 7361TypeSyntax typeParsedSoFar, ParseTypeMode mode) 7651private TypeSyntax ParseUnderlyingType(ParseTypeMode mode, NameOptions options = NameOptions.None) 7855private TypeSyntax ParsePointerTypeMods(TypeSyntax type) 7947var returnType = this.ParseReturnType(); 9024var type = this.ParseType(); 10079out var type, 10260out var type, 10276out TypeSyntax type, 10449TypeSyntax type, 11428var type = this.ParseType(mode); 11447TypeSyntax type => _syntaxFactory.BinaryExpression(SyntaxKind.IsExpression, leftOperand, opToken, type), 12841TypeSyntax type = null; 13334TypeSyntax returnType; 13449var paramType = modifiers.Count != 0 || ShouldParseLambdaParameterType() 13679var 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;