18 references to GetWellKnownType
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Await.cs (1)
662var 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)
1277TypeSymbol typeType = this.GetWellKnownType(WellKnownType.System_Type, diagnostics, node); 1401return new BoundTypeOfOperator(node, boundType, null, this.GetWellKnownType(WellKnownType.System_Type, diagnostics, node), hasError); 2636TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, node); 2672TypeSymbol rangeType = GetWellKnownType(WellKnownType.System_Range, diagnostics, node); 2743TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, operand); 4640var spanType = GetWellKnownType(WellKnownType.System_Span_T, diagnostics, node); 7442var 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)
614? this.GetWellKnownType(WellKnownType.System_Threading_Tasks_ValueTask, diagnostics, this._syntax) 853NamedTypeSymbol spanType = GetWellKnownType(wellKnownSpan, diagnostics, collectionExpr.Syntax);
Symbols\Source\ParameterHelpers.cs (2)
1212var requiresLocationType = binder.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_RequiresLocationAttribute, diagnostics, syntax); 1223var modifierType = binder.GetWellKnownType(modifier, diagnostics, syntax);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
283var modifierType = binder.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_InAttribute, diagnostics, syntax.ReturnType);