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