18 references to GetWellKnownType
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Await.cs (1)
659var INotifyCompletion = GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_INotifyCompletion, diagnostics, node);
Binder\Binder_Constraints.cs (1)
269GetWellKnownType(WellKnownType.System_Runtime_InteropServices_UnmanagedType, diagnostics, typeSyntax);
Binder\Binder_Conversions.cs (1)
713var stringFactory = GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_FormattableStringFactory, diagnostics, unconvertedSource.Syntax);
Binder\Binder_Expressions.cs (7)
1276TypeSymbol typeType = this.GetWellKnownType(WellKnownType.System_Type, diagnostics, node); 1400return new BoundTypeOfOperator(node, boundType, null, this.GetWellKnownType(WellKnownType.System_Type, diagnostics, node), hasError); 2613TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, node); 2649TypeSymbol rangeType = GetWellKnownType(WellKnownType.System_Range, diagnostics, node); 2720TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, operand); 4617var spanType = GetWellKnownType(WellKnownType.System_Span_T, diagnostics, node); 7411var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(GetSpecialType(SpecialType.System_Byte, diagnostics, node));
Binder\Binder_Patterns.cs (2)
225var systemRangeType = GetWellKnownType(WellKnownType.System_Range, diagnostics, node); 384var systemIndexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, node);
Binder\Binder_Statements.cs (1)
428boundExpr = GenerateConversionForAssignment(GetWellKnownType(WellKnownType.System_Exception, diagnostics, exprSyntax), boundExpr, diagnostics);
Binder\ForEachLoopBinder.cs (2)
611? this.GetWellKnownType(WellKnownType.System_Threading_Tasks_ValueTask, diagnostics, this._syntax) 850NamedTypeSymbol spanType = GetWellKnownType(wellKnownSpan, diagnostics, collectionExpr.Syntax);
Symbols\Source\ParameterHelpers.cs (2)
1204var requiresLocationType = binder.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_RequiresLocationAttribute, diagnostics, syntax); 1215var modifierType = binder.GetWellKnownType(modifier, diagnostics, syntax);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
283var modifierType = binder.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_InAttribute, diagnostics, syntax.ReturnType);