52 references to WellKnownMember
Microsoft.CodeAnalysis (51)
CodeGen\PrivateImplementationDetails.cs (3)
366var encodingUtf8 = getWellKnownTypeMember(compilation, WellKnownMember.System_Text_Encoding__get_UTF8); 367var encodingGetString = getWellKnownTypeMember(compilation, WellKnownMember.System_Text_Encoding__GetString); 384WellKnownMember member)
Compilation\Compilation.cs (3)
999internal abstract ISymbolInternal? CommonGetWellKnownTypeMember(WellKnownMember member); 3723internal void MakeMemberMissing(WellKnownMember member) 3733internal bool IsMemberMissing(WellKnownMember member)
Emit\CommonPEModuleBuilder.cs (2)
135internal abstract Cci.ICustomAttribute SynthesizeAttribute(WellKnownMember attributeConstructor); 1101SynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor));
Emit\EditAndContinue\DefinitionMap.cs (2)
357if (compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_AsyncStateMachineAttribute__ctor) == null) 365if (compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_IteratorStateMachineAttribute__ctor) == null)
Emit\NoPia\CommonEmbeddedMember.cs (1)
79builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_DispIdAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics));
Emit\NoPia\CommonEmbeddedMethod.cs (1)
89return TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_LCIDConversionAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics);
Emit\NoPia\CommonEmbeddedParameter.cs (5)
100builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_ParamArrayAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 107builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_CompilerServices_DateTimeConstantAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 115signatureIndex == 0 ? WellKnownMember.System_Runtime_CompilerServices_DecimalConstantAttribute__ctor : 116WellKnownMember.System_Runtime_CompilerServices_DecimalConstantAttribute__ctorByteByteInt32Int32Int32, 124builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_DefaultParameterValueAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics));
Emit\NoPia\CommonEmbeddedType.cs (9)
120builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_GuidAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 128builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_ComEventInterfaceAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 135builder.AddOptional(TypeManager.CreateSynthesizedAttribute(signatureIndex == 0 ? WellKnownMember.System_Runtime_InteropServices_InterfaceTypeAttribute__ctorInt16 : 136WellKnownMember.System_Runtime_InteropServices_InterfaceTypeAttribute__ctorComInterfaceType, 144builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_BestFitMappingAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 151builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_CoClassAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 158builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_FlagsAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 165builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Reflection_DefaultMemberAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics)); 179builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_UnmanagedFunctionPointerAttribute__ctor, constructorArguments, namedArguments, syntaxNodeOpt, diagnostics));
Emit\NoPia\EmbeddedTypesManager.cs (1)
159internal abstract TAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
Operations\ControlFlowGraphBuilder.cs (10)
4172? (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_IAsyncDisposable__DisposeAsync)?.GetISymbol() 4327var enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter2)?.GetISymbol(); 4333enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter)?.GetISymbol(); 4416var exitMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Exit)?.GetISymbol(); 4778IOperation tryCallObjectForLoopControlHelper(SyntaxNode syntax, WellKnownMember helper) 4781bool isInitialization = (helper == WellKnownMember.Microsoft_VisualBasic_CompilerServices_ObjectFlowControl_ForLoopControl__ForLoopInitObj); 4874WellKnownMember.Microsoft_VisualBasic_CompilerServices_ObjectFlowControl_ForLoopControl__ForLoopInitObj); 5029WellKnownMember.Microsoft_VisualBasic_CompilerServices_ObjectFlowControl_ForLoopControl__ForNextCheckObj); 7792(IMethodSymbol?)(_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_SwitchExpressionException__ctor) ?? 7793_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_InvalidOperationException__ctor))?.GetISymbol();
WellKnownMembers.cs (14)
5202string[] allNames = new string[(int)WellKnownMember.Count] 5838public static MemberDescriptor GetDescriptor(WellKnownMember member) 5847internal static bool IsSynthesizedAttributeOptional(WellKnownMember attributeMember) 5851case WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor: 5852case WellKnownMember.System_Diagnostics_DebuggableAttribute__ctorDebuggingModes: 5853case WellKnownMember.System_Diagnostics_DebuggerBrowsableAttribute__ctor: 5854case WellKnownMember.System_Diagnostics_DebuggerHiddenAttribute__ctor: 5855case WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor: 5856case WellKnownMember.System_Diagnostics_DebuggerStepThroughAttribute__ctor: 5857case WellKnownMember.System_Diagnostics_DebuggerNonUserCodeAttribute__ctor: 5858case WellKnownMember.System_STAThreadAttribute__ctor: 5859case WellKnownMember.System_Runtime_CompilerServices_AsyncStateMachineAttribute__ctor: 5860case WellKnownMember.System_Runtime_CompilerServices_IteratorStateMachineAttribute__ctor: 5861case WellKnownMember.System_Runtime_CompilerServices_AsyncIteratorStateMachineAttribute__ctor:
Microsoft.CodeAnalysis.CSharp (1)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
60/// <see cref="WellKnownMember.Microsoft_CodeAnalysis_Runtime_LocalStoreTracker__GetNewStateMachineInstanceId"/>.