56 references to ParameterHelpers
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Lambda.cs (4)
180ParameterHelpers.CheckParameterModifiers(p, diagnostics, parsingFunctionPointerParams: false, 183refKind = ParameterHelpers.GetModifiers(p.Modifiers, out _, out var paramsKeyword, out _, out scope); 366ParameterHelpers.GetModifiers(paramSyntax.Modifiers, refnessKeyword: out _, out var paramsKeyword, thisKeyword: out _, scope: out _); 370ParameterHelpers.ReportParameterErrors(owner: null, paramSyntax, ordinal: i, lastParameterIndex: lambda.ParameterCount - 1, isParams: isParams, lambda.ParameterTypeWithAnnotations(i),
BoundTree\UnboundLambda.cs (5)
664if (ParameterHelpers.IsRefScopedByDefault(Binder.UseUpdatedEscapeRules, refKind)) 824ParameterHelpers.EnsureRefKindAttributesExist(compilation, lambdaParameters, diagnostics, modifyCompilation: false); 842ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, lambdaParameters, diagnostics, modifyCompilation: false); 843ParameterHelpers.EnsureScopedRefAttributeExists(compilation, lambdaParameters, diagnostics, modifyCompilation: false); 844ParameterHelpers.EnsureNullableAttributeExists(compilation, lambdaSymbol, lambdaParameters, diagnostics, modifyCompilation: false);
Emitter\Model\PEModuleBuilder.cs (1)
1686Debug.Assert(!ParameterHelpers.IsRefScopedByDefault(symbol) || scope == ScopedKind.ScopedValue);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
126ParameterHelpers.EnsureRefKindAttributesExist(moduleBuilder, Parameters); 136ParameterHelpers.EnsureNativeIntegerAttributeExists(moduleBuilder, Parameters); 139ParameterHelpers.EnsureScopedRefAttributeExists(moduleBuilder, Parameters); 154ParameterHelpers.EnsureNullableAttributeExists(moduleBuilder, this, Parameters);
Lowering\LocalRewriter\LocalRewriter.cs (1)
339location = ParameterHelpers.GetParameterLocation(parameter);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
321return (field.Scope, ParameterHelpers.IsRefScopedByDefault(useUpdatedEscapeRules, field.RefKind)) switch
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
49customModifiers.AddRange(ParameterHelpers.CreateInModifiers(typeBinder, diagnostics, returnTypeParameter)); 534? ParameterHelpers.MakeFunctionPointerParameters(
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
33=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
345else if (ParameterHelpers.IsRefScopedByDefault(_moduleSymbol.UseUpdatedEscapeRules, refKind))
Symbols\SignatureOnlyParameterSymbol.cs (1)
57=> ParameterHelpers.IsRefScopedByDefault(this) ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Source\LocalFunctionSymbol.cs (5)
128ParameterHelpers.EnsureRefKindAttributesExist(compilation, Parameters, addTo, modifyCompilation: false); 130ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, Parameters, addTo, modifyCompilation: false); 131ParameterHelpers.EnsureScopedRefAttributeExists(compilation, Parameters, addTo, modifyCompilation: false); 132ParameterHelpers.EnsureNullableAttributeExists(compilation, this, Parameters, addTo, modifyCompilation: false); 195var parameters = ParameterHelpers.MakeParameters(
Symbols\Source\SourceComplexParameterSymbol.cs (1)
391bool hasErrors = ParameterHelpers.ReportDefaultParameterErrors(binder, ContainingSymbol, parameterSyntax, this, valueBeforeConversion, convertedExpression, diagnostics);
Symbols\Source\SourceConstructorSymbolBase.cs (6)
51_lazyParameters = ParameterHelpers.MakeParameters( 90ParameterHelpers.EnsureRefKindAttributesExist(compilation, Parameters, diagnostics, modifyCompilation: true); 91ParameterHelpers.EnsureParamCollectionAttributeExistsAndModifyCompilation(compilation, Parameters, diagnostics); 92ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 93ParameterHelpers.EnsureScopedRefAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 94ParameterHelpers.EnsureNullableAttributeExists(compilation, this, Parameters, diagnostics, modifyCompilation: true);
Symbols\Source\SourceDelegateMethodSymbol.cs (6)
265var parameters = ParameterHelpers.MakeParameters( 324ParameterHelpers.EnsureRefKindAttributesExist(compilation, Parameters, diagnostics, modifyCompilation: true); 325ParameterHelpers.EnsureParamCollectionAttributeExistsAndModifyCompilation(compilation, Parameters, diagnostics); 332ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 333ParameterHelpers.EnsureScopedRefAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 341ParameterHelpers.EnsureNullableAttributeExists(compilation, this, Parameters, diagnostics, modifyCompilation: true);
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (5)
247ParameterHelpers.EnsureRefKindAttributesExist(compilation, Parameters, diagnostics, modifyCompilation: true); 248ParameterHelpers.EnsureParamCollectionAttributeExistsAndModifyCompilation(compilation, Parameters, diagnostics); 255ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 257ParameterHelpers.EnsureScopedRefAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 264ParameterHelpers.EnsureNullableAttributeExists(compilation, this, Parameters, diagnostics, modifyCompilation: true);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
125ImmutableArray<ParameterSymbol> parameters = ParameterHelpers.MakeParameters(
Symbols\Source\SourceParameterSymbol.cs (2)
58ImmutableArray<CustomModifier> inModifiers = ParameterHelpers.ConditionallyCreateInModifiers(refKind, addRefReadOnlyModifier, context, declarationDiagnostics, syntax); 241if (ParameterHelpers.IsRefScopedByDefault(this))
Symbols\Source\SourceParameterSymbolBase.cs (1)
105if (ParameterHelpers.RequiresScopedRefAttribute(this))
Symbols\Source\SourcePropertySymbol.cs (1)
613var parameters = ParameterHelpers.MakeParameters(
Symbols\Source\SourcePropertySymbolBase.cs (5)
1030ParameterHelpers.EnsureRefKindAttributesExist(compilation, Parameters, diagnostics, modifyCompilation: true); 1031ParameterHelpers.EnsureParamCollectionAttributeExistsAndModifyCompilation(compilation, Parameters, diagnostics); 1038ParameterHelpers.EnsureNativeIntegerAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 1040ParameterHelpers.EnsureScopedRefAttributeExists(compilation, Parameters, diagnostics, modifyCompilation: true); 1048ParameterHelpers.EnsureNullableAttributeExists(compilation, this, Parameters, diagnostics, modifyCompilation: true);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
231parameters = ParameterHelpers.MakeParameters(
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
166if (ParameterHelpers.RequiresScopedRefAttribute(this))