310 references to CallingConvention
Microsoft.CodeAnalysis (27)
CodeGen\ArrayMembers.cs (2)
336public Cci.CallingConvention CallingConvention => Cci.CallingConvention.HasThis;
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
93public CallingConvention CallingConvention => OldDefinition.CallingConvention;
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
45public CallingConvention CallingConvention => OldDefinition.CallingConvention;
Emit\NoPia\CommonEmbeddedMethod.cs (1)
279Cci.CallingConvention Cci.ISignature.CallingConvention => UnderlyingMethodSignature.CallingConvention;
Emit\NoPia\CommonEmbeddedProperty.cs (1)
129Cci.CallingConvention Cci.ISignature.CallingConvention
Emit\NoPia\VtblGap.cs (3)
225Cci.CallingConvention Cci.ISignature.CallingConvention 227get { return Cci.CallingConvention.Default | Cci.CallingConvention.HasThis; }
MetadataReader\SymbolFactory.cs (1)
43internal abstract TypeSymbol MakeFunctionPointerTypeSymbol(ModuleSymbol moduleSymbol, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> returnAndParamTypes);
MetadataReader\TypeNameDecoder.cs (1)
80protected TypeSymbol MakeFunctionPointerTypeSymbol(Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamInfos)
PEWriter\Members.cs (11)
95internal static CallingConvention FromSignatureConvention(this SignatureCallingConvention convention) 102return (CallingConvention)(convention & SignatureCallingConventionMask); 108internal static SignatureCallingConvention ToSignatureConvention(this CallingConvention convention) 114internal static bool IsCallingConvention(this CallingConvention original, CallingConvention compare) 116Debug.Assert((compare & ~(CallingConvention)SignatureCallingConventionMask) == 0); 117return ((original & (CallingConvention)SignatureCallingConventionMask)) == compare; 120internal static bool HasUnknownCallingConventionAttributeBits(this CallingConvention convention) 121=> (convention & ~((CallingConvention)SignatureCallingConventionMask 122| (CallingConvention)SignatureAttributesMask)) 783CallingConvention CallingConvention { get; }
PEWriter\MetadataWriter.cs (3)
1136Debug.Assert((methodReference.CallingConvention & CallingConvention.Generic) != 0 == (methodReference.GenericParameterCount > 0)); 1143isInstanceMethod: (methodReference.CallingConvention & CallingConvention.HasThis) != 0); 1283isInstanceProperty: (propertyDef.CallingConvention & CallingConvention.HasThis) != 0);
PEWriter\RootModuleStaticConstructor.cs (2)
94public CallingConvention CallingConvention => CallingConvention.Default;
Microsoft.CodeAnalysis.CSharp (111)
Binder\Binder_Crefs.cs (2)
790callingConvention: candidateMethodIsVararg ? Microsoft.Cci.CallingConvention.ExtraArguments : Microsoft.Cci.CallingConvention.HasThis,
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3161if (sourceSig.CallingConvention == Cci.CallingConvention.Unmanaged &&
Binder\Semantics\OverloadResolution\CallingConventionInfo.cs (3)
12internal readonly Cci.CallingConvention CallKind; 15public CallingConventionInfo(Cci.CallingConvention callKind, ImmutableHashSet<CustomModifier> unmanagedCallingConventionTypes) 17Debug.Assert(unmanagedCallingConventionTypes.IsEmpty || callKind == Cci.CallingConvention.Unmanaged);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (9)
454Debug.Assert(expectedConvention.UnmanagedCallingConventionTypes.IsEmpty || expectedConvention.CallKind == Cci.CallingConvention.Unmanaged); 477Cci.CallingConvention actualCallKind; 502actualCallKind = Cci.CallingConvention.Unmanaged; 509actualCallKind = Cci.CallingConvention.CDecl; 513actualCallKind = Cci.CallingConvention.Standard; 517actualCallKind = Cci.CallingConvention.ThisCall; 521actualCallKind = Cci.CallingConvention.FastCall; 531actualCallKind = Cci.CallingConvention.Unmanaged; 549if (expectedConvention.CallKind.IsCallingConvention(Cci.CallingConvention.Unmanaged))
Compilation\CSharpCompilation.cs (2)
3781var internalCallingConvention = callingConvention.FromSignatureConvention(); 3782var conventionModifiers = internalCallingConvention == CallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
90Cci.CallingConvention Cci.ISignature.CallingConvention
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
72public CallingConvention CallingConvention => Underlying.CallingConvention;
Emitter\Model\MethodReference.cs (1)
79Cci.CallingConvention Cci.ISignature.CallingConvention
Emitter\Model\MethodSymbolAdapter.cs (1)
187Cci.CallingConvention Cci.ISignature.CallingConvention
Emitter\Model\PropertySymbolAdapter.cs (1)
148CallingConvention ISignature.CallingConvention
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (2)
189internal override Cci.CallingConvention CallingConvention 191get { return Cci.CallingConvention.HasThis; }
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
81internal override Cci.CallingConvention CallingConvention
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (2)
156internal override Microsoft.Cci.CallingConvention CallingConvention 158get { return Microsoft.Cci.CallingConvention.HasThis; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (2)
84internal sealed override Cci.CallingConvention CallingConvention 86get { return Cci.CallingConvention.HasThis; }
Symbols\ErrorMethodSymbol.cs (2)
109internal override Microsoft.Cci.CallingConvention CallingConvention 111get { return Microsoft.Cci.CallingConvention.Default; }
Symbols\ErrorPropertySymbol.cs (2)
88internal override Cci.CallingConvention CallingConvention { get { return Cci.CallingConvention.Default; } }
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (27)
26CallingConvention callingConvention = getCallingConvention(typeBinder.Compilation, syntax.CallingConvention, customModifiers, diagnostics); 108static CallingConvention getCallingConvention(CSharpCompilation compilation, FunctionPointerCallingConventionSyntax? callingConventionSyntax, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 113return CallingConvention.Default; 121return CallingConvention.Default; 146return CallingConvention.Unmanaged; 152{ ValueText: "Cdecl" } => CallingConvention.CDecl, 153{ ValueText: "Stdcall" } => CallingConvention.Standard, 154{ ValueText: "Thiscall" } => CallingConvention.ThisCall, 155{ ValueText: "Fastcall" } => CallingConvention.FastCall, 168return CallingConvention.Default; 182return CallingConvention.Unmanaged; 189static CallingConvention handleSingleConvention(FunctionPointerUnmanagedCallingConventionSyntax specifier, CSharpCompilation compilation, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 197return CallingConvention.Unmanaged; 244CallingConvention callingConvention, 268CallingConvention callingConvention, 280Debug.Assert(callingConvention == CallingConvention.Unmanaged); 328public static FunctionPointerMethodSymbol CreateFromMetadata(ModuleSymbol containingModule, CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 440CallingConvention callingConvention, 485CallingConvention callingConvention, 516CallingConvention callingConvention, 541private FunctionPointerMethodSymbol(CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes, bool useUpdatedEscapeRules) 640if (!CallingConvention.IsCallingConvention(CallingConvention.Unmanaged)) 669if (modifiersToSearch.IsEmpty || CallingConvention != CallingConvention.Unmanaged) 733if (CallingConvention.IsCallingConvention(CallingConvention.Unmanaged) 760internal override CallingConvention CallingConvention { get; } 776if (CallingConvention.IsCallingConvention(CallingConvention.ExtraArguments)) 795var isVararg = CallingConvention.IsCallingConvention(CallingConvention.ExtraArguments);
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (3)
32CallingConvention callingConvention, 46CallingConvention callingConvention, 55public static FunctionPointerTypeSymbol CreateFromMetadata(ModuleSymbol containingModule, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes)
Symbols\MemberSignatureComparer.cs (2)
777private static Cci.CallingConvention GetCallingConvention(Symbol member) 785return member.IsStatic ? 0 : Cci.CallingConvention.HasThis;
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1245internal override Cci.CallingConvention CallingConvention => (Cci.CallingConvention)Signature.Header.RawValue;
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
611internal override Microsoft.Cci.CallingConvention CallingConvention 616return (Microsoft.Cci.CallingConvention)(metadataDecoder.GetSignatureHeaderForProperty(_handle).RawValue);
Symbols\Metadata\PE\SymbolFactory.cs (1)
49internal override TypeSymbol MakeFunctionPointerTypeSymbol(PEModuleSymbol moduleSymbol, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes)
Symbols\MethodSymbol.cs (1)
910internal abstract Microsoft.Cci.CallingConvention CallingConvention
Symbols\PropertySymbol.cs (1)
217internal abstract Cci.CallingConvention CallingConvention { get; }
Symbols\ReducedExtensionMethodSymbol.cs (1)
288internal override Microsoft.Cci.CallingConvention CallingConvention
Symbols\SignatureOnlyMethodSymbol.cs (3)
24private readonly Cci.CallingConvention _callingConvention; 38Cci.CallingConvention callingConvention, 63internal override Cci.CallingConvention CallingConvention { get { return _callingConvention; } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
72internal override Cci.CallingConvention CallingConvention { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (2)
256internal override Microsoft.Cci.CallingConvention CallingConvention 258get { return Microsoft.Cci.CallingConvention.Default; }
Symbols\Source\LocalFunctionSymbol.cs (2)
310internal override CallingConvention CallingConvention => CallingConvention.Default;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4025Cci.CallingConvention.HasThis, 4071Cci.CallingConvention.HasThis, 4119Cci.CallingConvention.HasThis, 4178Cci.CallingConvention.HasThis, 4352Cci.CallingConvention.HasThis, 4445Cci.CallingConvention.HasThis,
Symbols\Source\SourceMemberMethodSymbol.cs (6)
578internal sealed override Cci.CallingConvention CallingConvention 582var cc = IsVararg ? Cci.CallingConvention.ExtraArguments : Cci.CallingConvention.Default; 586cc |= Cci.CallingConvention.Generic; 591cc |= Cci.CallingConvention.HasThis;
Symbols\Source\SourcePropertySymbolBase.cs (2)
556internal override Microsoft.Cci.CallingConvention CallingConvention 558get { return (IsStatic ? 0 : Microsoft.Cci.CallingConvention.HasThis); }
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (2)
203internal override Microsoft.Cci.CallingConvention CallingConvention 205get { return Microsoft.Cci.CallingConvention.HasThis; }
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
208internal override Cci.CallingConvention CallingConvention
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
306internal override Cci.CallingConvention CallingConvention
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
69internal sealed override Cci.CallingConvention CallingConvention
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
253internal sealed override Cci.CallingConvention CallingConvention 255get { return Cci.CallingConvention.HasThis; }
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
168internal override Cci.CallingConvention CallingConvention 174return Cci.CallingConvention.HasThis;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (2)
296internal override Cci.CallingConvention CallingConvention 300return Cci.CallingConvention.Default;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
125internal override Cci.CallingConvention CallingConvention
Symbols\Synthesized\SynthesizedStaticConstructor.cs (2)
269internal override Microsoft.Cci.CallingConvention CallingConvention 274return Microsoft.Cci.CallingConvention.Default;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
288internal override Microsoft.Cci.CallingConvention CallingConvention
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
63internal override Microsoft.Cci.CallingConvention CallingConvention
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (59)
CodeGen\CodeGenFunctionPointersTests.cs (47)
74[InlineData("", CallingConvention.Default)] 75[InlineData("managed", CallingConvention.Default)] 76[InlineData("unmanaged[Cdecl]", CallingConvention.CDecl)] 77[InlineData("unmanaged[Thiscall]", CallingConvention.ThisCall)] 78[InlineData("unmanaged[Stdcall]", CallingConvention.Standard)] 79[InlineData("unmanaged[Fastcall]", CallingConvention.FastCall)] 80[InlineData("unmanaged[@Cdecl]", CallingConvention.CDecl)] 81[InlineData("unmanaged[@Thiscall]", CallingConvention.ThisCall)] 82[InlineData("unmanaged[@Stdcall]", CallingConvention.Standard)] 83[InlineData("unmanaged[@Fastcall]", CallingConvention.FastCall)] 84[InlineData("unmanaged", CallingConvention.Unmanaged)] 85internal void CallingConventions(string conventionString, CallingConvention expectedConvention) 124Assert.Equal(CallingConvention.Unmanaged, ((FunctionPointerTypeSymbol)funcPtr).Signature.CallingConvention); 145VerifyFunctionPointerSymbol(funcPtr, CallingConvention.Default, 169VerifyFunctionPointerSymbol(funcPtr, CallingConvention.Default, 196VerifyFunctionPointerSymbol(returnType, CallingConvention.CDecl, 198(RefKind.None, IsFunctionPointerTypeSymbol(CallingConvention.Standard, 204VerifyFunctionPointerSymbol(paramType, CallingConvention.Default, 205(RefKind.None, IsFunctionPointerTypeSymbol(CallingConvention.Default, 228VerifyFunctionPointerSymbol(paramType, CallingConvention.Default, 564VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 568VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 572VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 577VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 582VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 587VerifyFunctionPointerSymbol(field.Type, CallingConvention.Default, 648VerifyFunctionPointerSymbol(returnType, CallingConvention.CDecl, 651IsFunctionPointerTypeSymbol(CallingConvention.Default, 654VerifyFunctionPointerSymbol(paramType, CallingConvention.Default, 656IsFunctionPointerTypeSymbol(CallingConvention.Default, 659IsFunctionPointerTypeSymbol(CallingConvention.Standard, 661IsFunctionPointerTypeSymbol(CallingConvention.Default, 689VerifyFunctionPointerSymbol(param, CallingConvention.Default, 745VerifyFunctionPointerSymbol(param.Type, CallingConvention.Default, 789validateProperty((PropertySymbol)c.GetProperty((string)"Prop1"), IsFunctionPointerTypeSymbol(CallingConvention.Default, 793validateProperty(c.GetProperty("Prop2"), IsFunctionPointerTypeSymbol(CallingConvention.Standard, 819VerifyFunctionPointerSymbol(c.GetField("_field").Type, CallingConvention.Default, 987VerifyFunctionPointerSymbol(prop.Type, CallingConvention.ExtraArguments, 995VerifyFunctionPointerSymbol(type, CallingConvention.ExtraArguments, 7660CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7664CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7669CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7673CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod), 7745CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7749CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7754CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7758CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod),
Emit\NoPiaEmbedTypes.cs (12)
1366Assert.Equal(CallingConvention.Default | CallingConvention.HasThis, ctor.CallingConvention); 1382Assert.Equal(CallingConvention.Default | CallingConvention.HasThis, begin.CallingConvention); 1398Assert.Equal(CallingConvention.Default | CallingConvention.HasThis, end.CallingConvention); 1413Assert.Equal(CallingConvention.Default | CallingConvention.HasThis, invoke.CallingConvention); 1434Assert.Equal(CallingConvention.ExtraArguments | CallingConvention.HasThis, m13.CallingConvention); 1496Assert.Equal(CallingConvention.Default | CallingConvention.HasThis, m17.CallingConvention);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (9)
Symbols\EEMethodSymbol.cs (5)
377internal override Cci.CallingConvention CallingConvention 382var cc = Cci.CallingConvention.Default; 385cc |= Cci.CallingConvention.ExtraArguments; 389cc |= Cci.CallingConvention.Generic;
Symbols\PlaceholderMethodSymbol.cs (3)
185internal override Cci.CallingConvention CallingConvention 190return this.IsGenericMethod ? Cci.CallingConvention.Generic : Cci.CallingConvention.Default;
Symbols\SynthesizedContextMethodSymbol.cs (1)
154internal override Microsoft.Cci.CallingConvention CallingConvention
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (4)
ExpressionCompilerTests.cs (4)
2550Assert.Equal(Cci.CallingConvention.Generic, ((Cci.IMethodDefinition)methodData.Method.GetCciAdapter()).CallingConvention); 2564Assert.Equal(Cci.CallingConvention.Default, ((Cci.IMethodDefinition)methodData.Method.GetCciAdapter()).CallingConvention); 2609Assert.Equal(Cci.CallingConvention.Generic, ((Cci.IMethodDefinition)methodData.Method.GetCciAdapter()).CallingConvention); 2639Assert.Equal(Cci.CallingConvention.ExtraArguments, ((Cci.IMethodDefinition)methodData.Method.GetCciAdapter()).CallingConvention);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\FunctionPointerTests.cs (1)
3920VerifyFunctionPointerSymbol(type, CallingConvention.Default,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\FunctionPointerTypeSymbolTests.cs (20)
223[InlineData("", CallingConvention.Default)] 224[InlineData("managed", CallingConvention.Default)] 225[InlineData("unmanaged[Cdecl]", CallingConvention.CDecl)] 226[InlineData("unmanaged[Stdcall]", CallingConvention.Standard)] 227[InlineData("unmanaged[Thiscall]", CallingConvention.ThisCall)] 228[InlineData("unmanaged[Fastcall]", CallingConvention.FastCall)] 229[InlineData("unmanaged", CallingConvention.Unmanaged)] 231internal void ValidCallingConventions(string convention, CallingConvention expectedConvention) 250if (expectedConvention == CallingConvention.Unmanaged) 327Assert.Equal(CallingConvention.Unmanaged, m1PointerType.Signature.CallingConvention); 331Assert.Equal(CallingConvention.Unmanaged, m2PointerType.Signature.CallingConvention); 335Assert.Equal(CallingConvention.Unmanaged, m3PointerType.Signature.CallingConvention); 1989var funcPtrConventionThisCall = createTypeSymbol(customModifiers: default, CallingConvention.ThisCall); 1990var funcPtrConventionThisCallWithThiscallMod = createTypeSymbol(customModifiers: ImmutableArray.Create(thiscallMod), CallingConvention.ThisCall); 2045(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2112(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2171(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
FunctionPointerUtilities.cs (3)
86Assert.Equal(symbol.IsVararg, symbol.CallingConvention.IsCallingConvention(CallingConvention.ExtraArguments)); 269public static void VerifyFunctionPointerSymbol(TypeSymbol type, CallingConvention expectedConvention, (RefKind RefKind, Action<TypeSymbol> TypeVerifier) returnVerifier, params (RefKind RefKind, Action<TypeSymbol> TypeVerifier)[] argumentVerifiers) 348public static Action<TypeSymbol> IsFunctionPointerTypeSymbol(CallingConvention callingConvention, (RefKind, Action<TypeSymbol>) returnVerifier, params (RefKind, Action<TypeSymbol>)[] argumentVerifiers)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (2)
ExpressionCompilerTestHelpers.cs (2)
534Assert.Equal(((Cci.IMethodDefinition)methodData.Method.GetCciAdapter()).CallingConvention, expectedGeneric ? Cci.CallingConvention.Generic : Cci.CallingConvention.Default);
Microsoft.CodeAnalysis.VisualBasic (55)
Binding\Binder_XmlLiterals.vb (3)
1567Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 1758Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 1760Return Microsoft.Cci.CallingConvention.HasThis
Emit\MethodReference.vb (1)
60Private ReadOnly Property ISignatureCallingConvention As Cci.CallingConvention Implements Cci.ISignature.CallingConvention
Emit\MethodSymbolAdapter.vb (1)
146Private ReadOnly Property ISignatureCallingConvention As Cci.CallingConvention Implements Cci.ISignature.CallingConvention
Emit\PropertySymbolAdapter.vb (1)
97Private ReadOnly Property ISignatureCallingConvention As CallingConvention Implements ISignature.CallingConvention
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
136Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (2)
125Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 127Return Microsoft.Cci.CallingConvention.HasThis
Symbols\ErrorMethodSymbol.vb (2)
36Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 38Return Microsoft.Cci.CallingConvention.Default
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
1078Friend Overrides ReadOnly Property CallingConvention As Cci.CallingConvention 1080Return CType(Signature.Header.RawValue, Cci.CallingConvention)
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
307Friend Overrides ReadOnly Property CallingConvention As CallingConvention 309Return CType(_signatureHeader.RawValue, CallingConvention)
Symbols\Metadata\PE\SymbolFactory.vb (1)
148Friend Overrides Function MakeFunctionPointerTypeSymbol(moduleSymbol As PEModuleSymbol, callingConvention As Cci.CallingConvention, retAndParamTypes As ImmutableArray(Of ParamInfo(Of TypeSymbol))) As TypeSymbol
Symbols\MethodSymbol.vb (1)
594Friend MustOverride ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\PropertySymbol.vb (1)
360Friend MustOverride ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\ReducedExtensionMethodSymbol.vb (1)
577Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
446Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
262Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\SignatureOnlyMethodSymbol.vb (3)
24Private ReadOnly _callingConvention As CallingConvention 34Public Sub New(ByVal name As String, ByVal m_containingType As TypeSymbol, ByVal methodKind As MethodKind, ByVal callingConvention As CallingConvention, ByVal typeParameters As ImmutableArray(Of TypeParameterSymbol), ByVal parameters As ImmutableArray(Of ParameterSymbol), 52Friend Overrides ReadOnly Property CallingConvention() As CallingConvention
Symbols\SignatureOnlyPropertySymbol.vb (1)
130Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\Source\LambdaSymbol.vb (2)
107Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 109Return Cci.CallingConvention.Default
Symbols\Source\SourceMethodSymbol.vb (6)
16Imports CallingConvention = Microsoft.Cci.CallingConvention ' to resolve ambiguity with System.Runtime.InteropServices.CallingConvention 733Friend NotOverridable Overrides ReadOnly Property CallingConvention As CallingConvention 735Return If(IsShared, CallingConvention.Default, CallingConvention.HasThis) Or 736If(IsGenericMethod, CallingConvention.Generic, CallingConvention.Default)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1092Friend Overrides ReadOnly Property CallingConvention As Cci.CallingConvention 1693Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\Source\SourcePropertySymbol.vb (3)
720Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 722Return (If(IsShared, Microsoft.Cci.CallingConvention.Default, Microsoft.Cci.CallingConvention.HasThis))
Symbols\SubstitutedMethodSymbol.vb (1)
334Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\SubstitutedPropertySymbol.vb (1)
232Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
86Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 88Return Microsoft.Cci.CallingConvention.HasThis
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (3)
201Friend NotOverridable Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 203Return If(IsShared, Microsoft.Cci.CallingConvention.Default, Microsoft.Cci.CallingConvention.HasThis)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (5)
37Friend NotOverridable Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 39Return If(IsShared, Microsoft.Cci.CallingConvention.Default, Microsoft.Cci.CallingConvention.HasThis) Or 40If(IsGenericMethod, Microsoft.Cci.CallingConvention.Generic, Microsoft.Cci.CallingConvention.Default)
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
82Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention
Symbols\SynthesizedSymbols\SynthesizedPropertyBase.vb (2)
68Friend Overrides ReadOnly Property CallingConvention As Microsoft.Cci.CallingConvention 70Return Microsoft.Cci.CallingConvention.HasThis
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
174Friend Overrides ReadOnly Property CallingConvention As Cci.CallingConvention
Symbols\Wrapped\WrappedPropertySymbol.vb (1)
47Friend Overrides ReadOnly Property CallingConvention As CallingConvention
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Emit\NoPiaEmbedTypes.vb (11)
1193Assert.Equal(Microsoft.Cci.CallingConvention.Default Or Microsoft.Cci.CallingConvention.HasThis, ctor.CallingConvention) 1209Assert.Equal(Microsoft.Cci.CallingConvention.Default Or Microsoft.Cci.CallingConvention.HasThis, begin.CallingConvention) 1225Assert.Equal(Microsoft.Cci.CallingConvention.Default Or Microsoft.Cci.CallingConvention.HasThis, [end].CallingConvention) 1240Assert.Equal(Microsoft.Cci.CallingConvention.Default Or Microsoft.Cci.CallingConvention.HasThis, invoke.CallingConvention) 1261Assert.Equal(Microsoft.Cci.CallingConvention.HasThis, m13.CallingConvention) 1324Assert.Equal(Microsoft.Cci.CallingConvention.Default Or Microsoft.Cci.CallingConvention.HasThis, m17.CallingConvention)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
Symbols\EEMethodSymbol.vb (4)
328Friend Overrides ReadOnly Property CallingConvention As Cci.CallingConvention 331Dim cc = Cci.CallingConvention.Default 333cc = cc Or Cci.CallingConvention.ExtraArguments 336cc = cc Or Cci.CallingConvention.Generic
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.vb (2)
2138Assert.Equal(Cci.CallingConvention.Generic, (DirectCast(methodData.Method.GetCciAdapter(), Cci.IMethodDefinition)).CallingConvention) 2144Assert.Equal(Cci.CallingConvention.Default, (DirectCast(methodData.Method.GetCciAdapter(), Cci.IMethodDefinition)).CallingConvention)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
405Friend Overrides ReadOnly Property CallingConvention As Cci.CallingConvention 407Return Cci.CallingConvention.Standard