7 instantiations of CSharpTypeInfo
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpSemanticModel.cs (6)
966
return new
CSharpTypeInfo
(declarationTypeSymbol, declarationTypeSymbol, nullabilityInfo, nullabilityInfo, Conversion.Identity);
970
return new
CSharpTypeInfo
(declarationInfo.Type, declarationInfo.Type, declarationInfo.Nullability, declarationInfo.Nullability, Conversion.Identity);
2025
return new
CSharpTypeInfo
(
2031
return new
CSharpTypeInfo
(member.Type, member.Type, nullability: default, convertedNullability: default, Conversion.Identity);
2260
return new
CSharpTypeInfo
(type, convertedType, nullability, convertedNullability, conversion);
2355
return new
CSharpTypeInfo
(type, type, default, default, Conversion.Identity);
Compilation\TypeInfo.cs (1)
15
internal static readonly CSharpTypeInfo None = new
CSharpTypeInfo
(type: null, convertedType: null, nullability: default, convertedNullability: default, Conversion.Identity);
38 references to CSharpTypeInfo
Microsoft.CodeAnalysis.CSharp (38)
Compilation\CSharpSemanticModel.cs (19)
155
internal abstract
CSharpTypeInfo
GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken));
545
var
varTypeInfo = GetTypeInfoWorker(expression, cancellationToken);
931
:
CSharpTypeInfo
.None;
956
return
CSharpTypeInfo
.None;
969
var
declarationInfo = GetTypeInfoWorker(parent, cancellationToken);
975
var
varTypeInfo = GetTypeInfoWorker(expression, cancellationToken);
1002
:
CSharpTypeInfo
.None;
1014
var
info = CanGetSemanticInfo(csnode)
1016
:
CSharpTypeInfo
.None;
1044
internal
CSharpTypeInfo
GetSpeculativeTypeInfoWorker(int position, ExpressionSyntax expression, SpeculativeBindingOption bindingOption)
1048
return
CSharpTypeInfo
.None;
1058
:
CSharpTypeInfo
.None;
1061
var
typeInfo = GetTypeInfoForNode(boundNode, boundNode, boundNodeForSyntacticParent: null);
1071
var
info = this.GetSpeculativeTypeInfoWorker(position, expression, bindingOption);
2015
internal
CSharpTypeInfo
GetTypeInfoForNode(
2263
return
CSharpTypeInfo
.None;
2348
internal static
CSharpTypeInfo
GetTypeInfoForSymbol(Symbol symbol)
4995
return
CSharpTypeInfo
.None;
5044
:
CSharpTypeInfo
.None;
Compilation\MemberSemanticModel.cs (3)
1059
private
CSharpTypeInfo
GetTypeInfoForQuery(BoundQueryClause bound)
1062
CSharpTypeInfo
.None :
1221
internal override
CSharpTypeInfo
GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
455
internal override
CSharpTypeInfo
GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSyntaxTreeSemanticModel.cs (1)
130
internal override
CSharpTypeInfo
GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (3)
305
internal override
CSharpTypeInfo
GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
323
return (object)symbol != null ? GetTypeInfoForSymbol(symbol) :
CSharpTypeInfo
.None;
442
return (model == null) ?
CSharpTypeInfo
.None : model.GetTypeInfo(node, cancellationToken);
Compilation\TypeInfo.cs (6)
13
internal readonly struct CSharpTypeInfo : IEquatable<
CSharpTypeInfo
>
15
internal static readonly
CSharpTypeInfo
None = new CSharpTypeInfo(type: null, convertedType: null, nullability: default, convertedNullability: default, Conversion.Identity);
53
public static implicit operator TypeInfo(
CSharpTypeInfo
info)
61
return obj is
CSharpTypeInfo
&& Equals((
CSharpTypeInfo
)obj);
64
public bool Equals(
CSharpTypeInfo
other)
CSharpExtensions.cs (5)
697
return
CSharpTypeInfo
.None;
710
return
CSharpTypeInfo
.None;
726
return
CSharpTypeInfo
.None;
742
return
CSharpTypeInfo
.None;
760
return
CSharpTypeInfo
.None;