6 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2400
public override TypeWithAnnotations
TypeWithAnnotations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
52
public override TypeWithAnnotations
TypeWithAnnotations
=> _type;
Symbols\Source\SourceLocalSymbol.cs (1)
291
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\SynthesizedLocal.cs (1)
138
public sealed override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
88
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\UpdatedContainingSymbolLocal.cs (1)
41
public override TypeWithAnnotations
TypeWithAnnotations
{ get; }
80 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (16)
BoundTree\BoundNode_Source.cs (1)
98
appendLine($"{local.
TypeWithAnnotations
.ToDisplayString()} {name(synthesized)};");
CodeGen\EmitStatement.cs (1)
1797
Debug.Assert(local.
TypeWithAnnotations
.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2079
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
2019
localType = local.
TypeWithAnnotations
;
3656
TypeWithAnnotations type = local.
TypeWithAnnotations
;
11311
local.
TypeWithAnnotations
;
11812
TypeWithAnnotations destinationType = iterationVariable.
TypeWithAnnotations
;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
136
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);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
84
if (local.
TypeWithAnnotations
.IsRestrictedType())
87
diagnostics.Add(ErrorCode.ERR_ByRefTypeAndAwait, syntax.Location, local.
TypeWithAnnotations
);
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)
506
returnType = local.
TypeWithAnnotations
;
Symbols\UpdatedContainingSymbolLocal.cs (1)
69
(TypeWithAnnotations.Equals(otherLocal.
TypeWithAnnotations
, compareKind) &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (64)
Semantics\ForEachTests.cs (1)
1649
Assert.Equal("C.var", boundNode.IterationVariables.Single().
TypeWithAnnotations
.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
34985
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
35003
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
59061
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59062
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59095
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59096
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
59123
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59124
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59155
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59156
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59184
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59185
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59217
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59218
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59249
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59250
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59282
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59283
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59316
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59317
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59343
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59344
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59371
var type = symbol.
TypeWithAnnotations
;
59401
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59402
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59405
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59406
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59409
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59410
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71296
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71297
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71299
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71301
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71332
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71333
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71335
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71336
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71373
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71374
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71376
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71377
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71410
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71411
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71413
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71414
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71447
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71448
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71450
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71451
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71482
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71483
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71485
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71486
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71515
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71516
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71552
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71553
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71555
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71556
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
81303
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
113637
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
113668
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
154954
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);