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