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)
1824
Debug.Assert(local.
TypeWithAnnotations
.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2082
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
2037
localType = local.
TypeWithAnnotations
;
3672
TypeWithAnnotations type = local.
TypeWithAnnotations
;
11447
local.
TypeWithAnnotations
;
11945
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)
91
if (local.
TypeWithAnnotations
.IsRestrictedType())
94
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)
34986
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
35004
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
59062
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59063
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59096
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59097
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
59124
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59125
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59156
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59157
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59185
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59186
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59218
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59219
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59250
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59251
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59283
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59284
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59317
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59318
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59344
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59345
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59372
var type = symbol.
TypeWithAnnotations
;
59402
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59403
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59406
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59407
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59410
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59411
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71320
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71321
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71323
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71325
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71356
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71357
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71359
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71360
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71397
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71398
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71400
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71401
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71434
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71435
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71437
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71438
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71471
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71472
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71474
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71475
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71506
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71507
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71509
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71510
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71539
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71540
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71576
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71577
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71579
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71580
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
81325
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
113659
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
113690
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
155007
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);