45 references to Compilation
Microsoft.CodeAnalysis.CSharp.Workspaces (44)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (44)
113
typeInferenceInfo = new TypeInferenceInfo(method.ConvertToType(this.
Compilation
));
589
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
610
invocationTypes.Any(t =>
Compilation
.ClassifyConversion(m.ReturnType, t).IsImplicit)).ToList();
848
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
872
=> CreateResult(this.
Compilation
.AttributeType());
880
return CreateResult(this.
Compilation
.AttributeType());
891
return CreateResult(this.
Compilation
.AttributeType());
972
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
1070
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
1101
return CreateResult(this.
Compilation
.ExceptionType());
1136
return rightTypes.Select(x => new TypeInferenceInfo(MakeNullable(x.InferredType, this.
Compilation
)));
1332
? this.
Compilation
.IAsyncEnumerableOfTType()
1333
: this.
Compilation
.IEnumerableOfTType();
1335
enumerableType ??= this.
Compilation
.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T);
1343
var objectType =
Compilation
.GetSpecialType(SpecialType.System_Object);
1349
: results.Concat(CreateResult(
Compilation
.GetSpecialType(SpecialType.System_Collections_IEnumerable)));
1661
var type =
Compilation
.CreateTupleTypeSymbol(
1696
var type = types.FirstOrDefault().InferredType.GetDelegateType(this.
Compilation
);
1817
var taskOfT = this.
Compilation
.TaskOfTType();
1820
return CreateResult(taskOfT.Construct(this.
Compilation
.ObjectType));
1826
var ienumerableType = this.
Compilation
.IEnumerableOfTType();
1840
var delegateType = argumentTypes.FirstOrDefault().InferredType.GetDelegateType(this.
Compilation
);
1843
: this.
Compilation
.ObjectType;
1847
typeArg = InferTypeForFirstParameterOfLambda(lambdaExpression) ?? this.
Compilation
.ObjectType;
1975
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
1993
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
2000
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
2032
yield return new TypeInferenceInfo(functionPointerType.Signature.ConvertToType(this.
Compilation
));
2045
var task = this.
Compilation
.TaskType();
2046
var taskOfT = this.
Compilation
.TaskOfTType();
2084
if (type.OriginalDefinition.Equals(this.
Compilation
.TaskOfTType()) || type.OriginalDefinition.Equals(this.
Compilation
.ValueTaskOfTType()))
2090
if (type.OriginalDefinition.Equals(this.
Compilation
.TaskType()) || type.OriginalDefinition.Equals(this.
Compilation
.ValueTaskType()))
2092
return this.
Compilation
.GetSpecialType(SpecialType.System_Void);
2220
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
2229
return CreateResult(this.
Compilation
.ExceptionType());
2238
return CreateResult(this.
Compilation
.ExceptionType());
2275
return CreateResult(this.
Compilation
.GetSpecialType(SpecialType.System_Int32));
2333
return inferredFutureUsage.Length > 0 ? inferredFutureUsage[0].InferredType :
Compilation
.ObjectType;
2337
Compilation
.CreateTupleTypeSymbol(elementTypes, elementNames))];
2367
return
Compilation
.CreateTupleTypeSymbol(elementTypes, elementNames, elementNullableAnnotations: GetNullableAnnotations(elementTypes));
2396
elementTypesBuilder.Add(GetTypes(expr).FirstOrDefault().InferredType ?? this.
Compilation
.ObjectType);
2452
return [new TypeInferenceInfo(
Compilation
.GetSpecialType(SpecialType.System_Boolean))];
Microsoft.CodeAnalysis.Workspaces (1)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
79
=> CreateResult(
Compilation
.GetSpecialType(type).WithNullableAnnotation(nullableAnnotation));