15 references to Type
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_AnonymousTypes.cs (1)
126
declarators.Add(new BoundAnonymousPropertyDeclaration(fieldSyntaxNodes[i], (PropertySymbol)symbol, field.
Type
));
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (8)
200
bool returnsVoid = fields[^1].
Type
.IsVoidType();
210
Debug.Assert(field.
Type
.IsSZArray());
211
typeArgumentsBuilder.Add(((ArrayTypeSymbol)field.
Type
).ElementTypeWithAnnotations);
232
Debug.Assert(lastParam.
Type
.IsSZArray());
238
var replacement = TypeWithAnnotations.Create(((ArrayTypeSymbol)lastParam.
Type
).WithElementType(original));
312
return returnParameter.
Type
.IsVoidType() || isValidTypeArgument(useUpdatedEscapeRules, runtimeSupportsByRefLikeGenerics, returnParameter, ref needsIndexedName);
333
field.
Type
is { } type &&
336
(!field.IsParams || field.
Type
.IsSZArray()); // [params T collection] is not recognized as a valid params parameter definition
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (6)
109
returnsVoid: typeDescr.Fields[^1].
Type
.IsVoidType(),
123
var returnsVoid = returnParameter.
Type
.IsVoidType();
135
Debug.Assert(field.
Type
.IsSZArray());
145
var returnType = TypeWithAnnotations.Create(returnsVoid ? returnParameter.
Type
: typeParams[parameterCount]);
202
new SynthesizedDelegateInvokeMethod.ParameterDescription(typeMap.SubstituteType(field.
Type
), field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
206
var returnType = typeMap.SubstituteType(returnParameter.
Type
);