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