64 references to UnknownResultType
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Deconstruct.cs (2)
309
var operandPlaceholder = new BoundValuePlaceholder(syntax, ErrorTypeSymbol.
UnknownResultType
).MakeCompilerGenerated();
314
type: ErrorTypeSymbol.
UnknownResultType
) { WasCompilerGenerated = true }));
Binder\Binder_Expressions.cs (1)
5730
identifierName, boundNode, badRight, isRef: false, ErrorTypeSymbol.
UnknownResultType
, hasErrors: true)
Compilation\CSharpCompilation.cs (3)
59
private NamedTypeSymbol? _lazyScriptClass = ErrorTypeSymbol.
UnknownResultType
;
1538
if (ReferenceEquals(_lazyScriptClass, ErrorTypeSymbol.
UnknownResultType
))
1540
Interlocked.CompareExchange(ref _lazyScriptClass, BindScriptClass()!, ErrorTypeSymbol.
UnknownResultType
);
Compilation\CSharpSemanticModel.cs (1)
3754
if ((object)typeOfThis == ErrorTypeSymbol.
UnknownResultType
)
Emitter\NoPia\EmbeddedTypesManager.cs (4)
41
private NamedTypeSymbol _lazySystemStringType = ErrorTypeSymbol.
UnknownResultType
;
57
if ((object)_lazySystemStringType == (object)ErrorTypeSymbol.
UnknownResultType
)
68
if (TypeSymbol.Equals(Interlocked.CompareExchange(ref _lazySystemStringType, typeSymbol, ErrorTypeSymbol.
UnknownResultType
), ErrorTypeSymbol.
UnknownResultType
, TypeCompareKind.ConsiderEverything2))
Lowering\LocalRewriter\LocalRewriter_Event.cs (5)
128
clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.
UnknownResultType
);
170
marshalCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, marshalArguments, ErrorTypeSymbol.
UnknownResultType
);
265
getOrCreateCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(fieldAccess), ErrorTypeSymbol.
UnknownResultType
);
287
return new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(getOrCreateCall), ErrorTypeSymbol.
UnknownResultType
);
334
ImmutableArray.Create(rewrittenReceiver, rewrittenArgument), ErrorTypeSymbol.
UnknownResultType
);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
483
helperCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.
UnknownResultType
);
544
lengthCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(factory.Local(pinnedTemp)), ErrorTypeSymbol.
UnknownResultType
);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
117
exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.
UnknownResultType
);
212
enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.
UnknownResultType
);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
389
newGuid = new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.
UnknownResultType
);
407
callGetTypeFromCLSID = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.
UnknownResultType
);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
72
type: ErrorTypeSymbol.
UnknownResultType
);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
463
disposeCall = new BoundBadExpression(resourceSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(disposedExpression), ErrorTypeSymbol.
UnknownResultType
);
Symbols\Attributes\PEAttributeData.cs (3)
21
private NamedTypeSymbol? _lazyAttributeClass = ErrorTypeSymbol.
UnknownResultType
; // Indicates uninitialized.
77
if ((object?)_lazyAttributeClass == ErrorTypeSymbol.
UnknownResultType
)
93
Interlocked.CompareExchange(ref _lazyAttributeClass, (NamedTypeSymbol?)attributeClass, ErrorTypeSymbol.
UnknownResultType
); // Serves as a flag, so do it last.
Symbols\Compilation_WellKnownMembers.cs (3)
84
if (_lazyWellKnownTypeMembers == null || ReferenceEquals(_lazyWellKnownTypeMembers[(int)member], ErrorTypeSymbol.
UnknownResultType
))
92
wellKnownTypeMembers[i] = ErrorTypeSymbol.
UnknownResultType
;
109
Interlocked.CompareExchange(ref _lazyWellKnownTypeMembers[(int)member], result, ErrorTypeSymbol.
UnknownResultType
);
Symbols\ErrorMethodSymbol.cs (2)
16
public static readonly ErrorMethodSymbol UnknownMethod = new ErrorMethodSymbol(ErrorTypeSymbol.
UnknownResultType
, ErrorTypeSymbol.
UnknownResultType
, string.Empty);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
73
private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.
UnknownResultType
;
75
private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.
UnknownResultType
;
144
internal NamedTypeSymbol lazyComImportCoClassType = ErrorTypeSymbol.
UnknownResultType
;
164
(object)lazyComImportCoClassType == (object)ErrorTypeSymbol.
UnknownResultType
&&
474
if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.
UnknownResultType
))
476
Interlocked.CompareExchange(ref _lazyBaseType, MakeAcyclicBaseType(), ErrorTypeSymbol.
UnknownResultType
);
505
if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.
UnknownResultType
))
524
Interlocked.CompareExchange(ref _lazyDeclaredBaseType, baseType, ErrorTypeSymbol.
UnknownResultType
);
2358
if (ReferenceEquals(uncommon.lazyComImportCoClassType, ErrorTypeSymbol.
UnknownResultType
))
2363
Interlocked.CompareExchange(ref uncommon.lazyComImportCoClassType, coClassType, ErrorTypeSymbol.
UnknownResultType
);
Symbols\MetadataOrSourceAssemblySymbol.cs (3)
190
if (_lazySpecialTypeMembers == null || ReferenceEquals(_lazySpecialTypeMembers[(int)member], ErrorTypeSymbol.
UnknownResultType
))
198
specialTypeMembers[i] = ErrorTypeSymbol.
UnknownResultType
;
213
Interlocked.CompareExchange(ref _lazySpecialTypeMembers[(int)member], result, ErrorTypeSymbol.
UnknownResultType
);
Symbols\ReducedExtensionMethodSymbol.cs (1)
190
builder.Add(TypeWithAnnotations.Create(ErrorTypeSymbol.
UnknownResultType
));
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (6)
31
private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.
UnknownResultType
;
34
private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.
UnknownResultType
;
277
if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.
UnknownResultType
))
296
Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.
UnknownResultType
);
330
if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.
UnknownResultType
))
334
Interlocked.CompareExchange(ref _lazyDeclaredBaseType, declaredBase, ErrorTypeSymbol.
UnknownResultType
);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (4)
26
private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.
UnknownResultType
;
39
if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.
UnknownResultType
))
51
if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.
UnknownResultType
), ErrorTypeSymbol.
UnknownResultType
))
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (4)
18
private NamedTypeSymbol _lazyEnumUnderlyingType = ErrorTypeSymbol.
UnknownResultType
;
28
if (ReferenceEquals(_lazyEnumUnderlyingType, ErrorTypeSymbol.
UnknownResultType
))
31
if ((object)Interlocked.CompareExchange(ref _lazyEnumUnderlyingType, this.GetEnumUnderlyingType(diagnostics), ErrorTypeSymbol.
UnknownResultType
) ==
32
(object)ErrorTypeSymbol.
UnknownResultType
)
Symbols\SubstitutedNamedTypeSymbol.cs (4)
42
private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.
UnknownResultType
;
163
if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.
UnknownResultType
))
166
Interlocked.CompareExchange(ref _lazyBaseType, baseType, ErrorTypeSymbol.
UnknownResultType
);
169
Debug.Assert(!ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.
UnknownResultType
));