10 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2268
public override TypeWithAnnotations
TypeWithAnnotations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
52
public override TypeWithAnnotations
TypeWithAnnotations
=> _type;
Symbols\Source\SourceLocalSymbol.cs (1)
292
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\SynthesizedLocal.cs (1)
138
public sealed override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
77
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\UpdatedContainingSymbolLocal.cs (1)
41
public override TypeWithAnnotations
TypeWithAnnotations
{ get; }
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
Symbols\EEDisplayClassFieldLocalSymbol.cs (1)
55
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\EELocalConstantSymbol.cs (1)
67
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\EELocalSymbol.cs (1)
119
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\PlaceholderLocalSymbol.cs (1)
94
public override TypeWithAnnotations
TypeWithAnnotations
80 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\BoundNode_Source.cs (1)
83
appendLine($"{local.
TypeWithAnnotations
.ToDisplayString()} {name(synthesized)};");
CodeGen\EmitStatement.cs (1)
1767
Debug.Assert(local.
TypeWithAnnotations
.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2089
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
1867
localType = local.
TypeWithAnnotations
;
3293
TypeWithAnnotations type = local.
TypeWithAnnotations
;
9770
local.
TypeWithAnnotations
;
10181
TypeWithAnnotations destinationType = iterationVariable.
TypeWithAnnotations
;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
116
return frame.TypeMap.SubstituteType(((object)local != null ? local.
TypeWithAnnotations
: ((ParameterSymbol)variable).TypeWithAnnotations).Type).Type;
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
44
cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.NullRef(pinnedTemp.
TypeWithAnnotations
), isRef: true);
Symbols\LocalSymbol.cs (1)
73
public TypeSymbol Type =>
TypeWithAnnotations
.Type;
Symbols\PublicModel\LocalSymbol.cs (2)
31
Interlocked.CompareExchange(ref _lazyType, _underlying.
TypeWithAnnotations
.GetPublicSymbol(), null);
38
CodeAnalysis.NullableAnnotation ILocalSymbol.NullableAnnotation => _underlying.
TypeWithAnnotations
.ToPublicAnnotation();
Symbols\SymbolExtensions.cs (1)
513
returnType = local.
TypeWithAnnotations
;
Symbols\UpdatedContainingSymbolLocal.cs (1)
69
(TypeWithAnnotations.Equals(otherLocal.
TypeWithAnnotations
, compareKind) &&
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EELocalSymbolBase.cs (2)
25
var type = typeMap.SubstituteType(local.
TypeWithAnnotations
);
80
var type = this.
TypeWithAnnotations
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (64)
Semantics\ForEachTests.cs (1)
1648
Assert.Equal("C.var", boundNode.IterationVariables.Single().
TypeWithAnnotations
.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
33047
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
33065
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
56565
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56566
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56599
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56600
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
56627
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56628
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56659
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56660
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56688
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56689
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56721
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56722
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56753
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56754
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56786
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56787
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56820
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56821
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56847
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56848
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56875
var type = symbol.
TypeWithAnnotations
;
56905
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56906
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56909
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56910
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
56913
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
56914
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67837
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67838
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67840
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67842
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67873
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67874
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67876
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67877
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67914
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67915
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67917
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67918
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67951
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67952
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67954
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67955
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67988
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67989
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
67991
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
67992
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
68023
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
68024
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
68026
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
68027
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
68056
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
68057
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
68093
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
68094
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
68096
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
68097
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
77614
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
109867
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
109898
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
150524
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);