15 references to Type
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_AnonymousTypes.cs (1)
126declarators.Add(new BoundAnonymousPropertyDeclaration(fieldSyntaxNodes[i], (PropertySymbol)symbol, field.Type));
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (8)
200bool returnsVoid = fields[^1].Type.IsVoidType(); 210Debug.Assert(field.Type.IsSZArray()); 211typeArgumentsBuilder.Add(((ArrayTypeSymbol)field.Type).ElementTypeWithAnnotations); 232Debug.Assert(lastParam.Type.IsSZArray()); 238var replacement = TypeWithAnnotations.Create(((ArrayTypeSymbol)lastParam.Type).WithElementType(original)); 312return returnParameter.Type.IsVoidType() || isValidTypeArgument(useUpdatedEscapeRules, runtimeSupportsByRefLikeGenerics, returnParameter, ref needsIndexedName); 333field.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)
109returnsVoid: typeDescr.Fields[^1].Type.IsVoidType(), 123var returnsVoid = returnParameter.Type.IsVoidType(); 135Debug.Assert(field.Type.IsSZArray()); 145var returnType = TypeWithAnnotations.Create(returnsVoid ? returnParameter.Type : typeParams[parameterCount]); 202new SynthesizedDelegateInvokeMethod.ParameterDescription(typeMap.SubstituteType(field.Type), field.RefKind, field.Scope, field.DefaultValue, isParams: field.IsParams, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute)); 206var returnType = typeMap.SubstituteType(returnParameter.Type);