using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp.Symbols; internal sealed class SourceSimpleParameterSymbol : SourceParameterSymbol { public override bool IsDiscard => false; internal override ConstantValue? ExplicitDefaultConstantValue => null; internal override bool IsMetadataOptional => false; public override bool IsParams => false; internal override bool HasDefaultArgumentSyntax => false; public override ImmutableArray RefCustomModifiers => ImmutableArray.Empty; internal override SyntaxReference? SyntaxReference => null; internal override bool IsExtensionMethodThis => false; internal override bool IsIDispatchConstant => false; internal override bool IsIUnknownConstant => false; internal override bool IsCallerFilePath => false; internal override bool IsCallerLineNumber => false; internal override bool IsCallerMemberName => false; internal override int CallerArgumentExpressionParameterIndex => -1; internal override ImmutableArray InterpolatedStringHandlerArgumentIndexes => ImmutableArray.Empty; internal override bool HasInterpolatedStringHandlerArgumentError => false; internal override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None; internal override ImmutableHashSet NotNullIfParameterNotNull => ImmutableHashSet.Empty; internal override MarshalPseudoCustomAttributeData? MarshallingInformation => null; internal override bool HasOptionalAttribute => false; internal override SyntaxList AttributeDeclarationList => default(SyntaxList); internal override ConstantValue DefaultValueFromAttributes => null; internal override ScopedKind EffectiveScope => CalculateEffectiveScopeIgnoringAttributes(); internal override bool HasUnscopedRefAttribute => false; public SourceSimpleParameterSymbol(Symbol owner, TypeWithAnnotations parameterType, int ordinal, RefKind refKind, ScopedKind scope, string name, ImmutableArray locations) : this(owner, parameterType, ordinal, refKind, scope, name, locations.FirstOrDefault()) { }//IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) public SourceSimpleParameterSymbol(Symbol owner, TypeWithAnnotations parameterType, int ordinal, RefKind refKind, ScopedKind scope, string name, Location? location) : base(owner, parameterType, ordinal, refKind, scope, name, location) { }//IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) internal override CustomAttributesBag GetAttributesBag() { state.NotePartComplete(CompletionPart.Attributes); return CustomAttributesBag.Empty; } }