2 implementations of Parameters
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PropertySymbol.cs (1)
46ImmutableArray<IParameterSymbol> IPropertySymbol.Parameters
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
562Private ReadOnly Property IPropertySymbol_Parameters As ImmutableArray(Of IParameterSymbol) Implements IPropertySymbol.Parameters
160 references to Parameters
Microsoft.AspNetCore.App.Analyzers (3)
Http\HeaderDictionaryIndexerAnalyzer.cs (2)
29property.Parameters.Length == 1 && 30property.Parameters[0].Type.SpecialType == SpecialType.System_String &&
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
157IPropertySymbol parameterSymbol => parameterSymbol.Parameters,
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
157IPropertySymbol parameterSymbol => parameterSymbol.Parameters,
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
729if (propertySymbol != null && AllParametersMatch(propertySymbol.Parameters, parameters))
DocumentationCommentId.cs (3)
450AppendParameters(symbol.Parameters); 1321&& AllParametersMatch(propertySymbol.Parameters, parameters)) 1327else if (propertySymbol.Parameters.Length == 0)
Operations\ControlFlowGraphBuilder.cs (3)
7244if (!propertySymbol.Parameters.IsEmpty) 7247var builder = ArrayBuilder<IArgumentOperation>.GetInstance(propertySymbol.Parameters.Length); 7248foreach (var parameter in propertySymbol.Parameters)
Microsoft.CodeAnalysis.CodeStyle (19)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
367if (property.Parameters.Length > 0)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
729if (propertySymbol != null && AllParametersMatch(propertySymbol.Parameters, parameters))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
413IPropertySymbol nt => nt.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
93symbol.Parameters.Any(static (p, self) => p.Accept(self), this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
50Resolve(result, reader, metadataName, ordinal, property.Parameters);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (4)
21visitor.WriteRefKindArray(symbol.Parameters); 22visitor.WriteParameterTypesArray(symbol.OriginalDefinition.Parameters); 98getContextualType: static (property, i) => SafeGet(property.OriginalDefinition.Parameters, i)?.Type, 99property.OriginalDefinition.Parameters))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (4)
54property1.Parameters.Length != property2.Parameters.Length || 60return property1.Parameters.SequenceEqual( 61property2.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
601x.Parameters.Length == y.Parameters.Length && 604ParametersAreEquivalent(x.Parameters, y.Parameters, equivalentTypesWithDifferingAssemblies) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
244Hash.Combine(x.Parameters.Length, 249return CombineHashCodes(x.Parameters, currentHash, _parameterAggregator);
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
554property.Parameters.Length == 0 &&
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
225Parameters = propertySymbol.Parameters;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
34.Where(p => !p.IsImplicitlyDeclared && p.Parameters.Length == 0 && p.GetMethod != null)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
53if (property is { IsIndexer: false, Parameters.Length: > 0 } && 62property.Parameters.SelectAsArray(p => p.Name),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
566parameters ?? property.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (3)
17var parameterList = property.Parameters; 46var someParameterHasAttribute = property.Parameters 60property.Parameters.SelectAsArray(static (p, arg) =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (6)
207if (property.Parameters.Length > 0) 209var arguments = generator.CreateArguments(property.Parameters); 220if (conflictingProperty is { GetMethod: not null, Parameters.Length: 0 } && 221property is { GetMethod: not null, Parameters.Length: 0 }) 246if (property.Parameters.Length > 0) 248var arguments = generator.CreateArguments(property.Parameters);
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
222if (this.Format.MemberOptions.IncludesOption(SymbolDisplayMemberOptions.IncludeParameters) && symbol.Parameters.Any()) 225AddParametersIfNeeded(hasThisParameter: false, isVarargs: false, parameters: symbol.Parameters);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
133p.Parameters.Length == 1 && 134p.Parameters[0].Type.Equals(parameterType))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
27=> property.IsIndexer || property.Parameters.Length == 0; 102parameterList: ParameterGenerator.GenerateBracketedParameterList(property.Parameters, explicitInterfaceSpecifier != null, info),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
554.Where(p => p.IsIndexer && p.Parameters.Length > index); 559InferTypeInArgument(index, [i.Parameters], argumentOpt));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\IndexAndRangeTests.cs (1)
1002Assert.Equal(SpecialType.System_Int32, property.Parameters[0].Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (2)
42if (symbol.Parameters.Length > 0) 45AddParameters(symbol.Parameters, builder);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
201if (member is IPropertySymbol property && property.Parameters.Any(static p => !p.IsOptional))
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
240indexer.Parameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList());
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
133p.Parameters.Length == 1 && 134p.Parameters[0].Type.Equals(parameterType))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
337return property.Parameters.Length == 0 && !IsSkippedPropertyName(property.Name);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
68foreach (IParameterSymbol p in prop.Parameters)
Symbols\Source\NullablePublicAPITests.cs (2)
3275Assert.Equal(secondAnnotation, propertySymbol.Parameters[0].NullableAnnotation); 3276Assert.Equal(secondAnnotation, propertySymbol.Parameters[0].Type.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
758return ((IPropertySymbol)member).Parameters;
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Rename\CSharpRenameRewriterLanguageService.cs (1)
1083if (!property.Parameters.Any() && !property.IsWriteOnly)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
27=> property.IsIndexer || property.Parameters.Length == 0; 102parameterList: ParameterGenerator.GenerateBracketedParameterList(property.Parameters, explicitInterfaceSpecifier != null, info),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
554.Where(p => p.IsIndexer && p.Parameters.Length > index); 559InferTypeInArgument(index, [i.Parameters], argumentOpt));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
113foreach (var parameter in symbol.Parameters)
Microsoft.CodeAnalysis.Features (19)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
534=> property is { IsIndexer: true, Parameters: [{ Type.SpecialType: SpecialType.System_Int32 }] };
Debugging\AbstractBreakpointResolver.cs (1)
288IPropertySymbol property => property.Parameters.Length != parameterCount,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2448return ParameterTypesEquivalent(oldProperty.Parameters, newProperty.Parameters, exact) &&
ExtractInterface\AbstractExtractInterfaceService.cs (1)
421parameters: property.Parameters,
GenerateFromMembers\AbstractGenerateFromMembersCodeRefactoringProvider.cs (1)
81=> property.Parameters.IsEmpty;
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
630property.Parameters.Length == 0 &&
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
123foreach (var parameter in symbol.Parameters)
RQName\RQNodeBuilder.cs (1)
129var parameterList = BuildParameterList(symbol.Parameters);
Shared\Extensions\ISymbolExtensions_Sorting.cs (2)
105=> CompareParameters(xProperty.Parameters, xTypeNames, yProperty.Parameters, yTypeNames);
Shared\Utilities\ExtractTypeHelpers.cs (1)
212return property.Parameters.Any(static (t, arg) => DoesTypeReferenceTypeParameter(t.Type, arg.typeParameter, arg.checkedTypes), (typeParameter, checkedTypes)) ||
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
367if (property.Parameters.Length > 0)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
554property.Parameters.Length == 0 &&
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
225Parameters = propertySymbol.Parameters;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
34.Where(p => !p.IsImplicitlyDeclared && p.Parameters.Length == 0 && p.GetMethod != null)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
53if (property is { IsIndexer: false, Parameters.Length: > 0 } && 62property.Parameters.SelectAsArray(p => p.Name),
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
729if (propertySymbol != null && AllParametersMatch(propertySymbol.Parameters, parameters))
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
106If symbol.Parameters.Length > 0 Then 109AddParametersIfRequired(isExtensionMethod:=False, parameters:=symbol.Parameters)
Symbols\PropertySymbol.vb (1)
562Private ReadOnly Property IPropertySymbol_Parameters As ImmutableArray(Of IParameterSymbol) Implements IPropertySymbol.Parameters
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
306If index < prop.Parameters.Length Then 307Return prop.Parameters(index).RefKind <> RefKind.None
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (3)
101If [property].Parameters.IsDefault OrElse [property].Parameters.Length = 0 Then 105Return ParameterGenerator.GenerateParameterList([property].Parameters, options)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (2)
125Return [property].Parameters.IsDefaultOrEmpty OrElse [property].Parameters.All(Function(p) p.IsOptional OrElse p.IsParams)
SignatureHelp\InvocationExpressionSignatureHelpProvider.ElementAccess.vb (1)
49indexer.Parameters.Select(Function(p) Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
960If Not [property].Parameters.Any() AndAlso Not [property].IsWriteOnly Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
306If index < prop.Parameters.Length Then 307Return prop.Parameters(index).RefKind <> RefKind.None
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (3)
101If [property].Parameters.IsDefault OrElse [property].Parameters.Length = 0 Then 105Return ParameterGenerator.GenerateParameterList([property].Parameters, options)
Microsoft.CodeAnalysis.Workspaces (41)
Editing\SyntaxGenerator.cs (1)
452indexer.Parameters.Select(p => this.ParameterDeclaration(p)),
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
191AddParameterAtIndex(results, ordinal, property.Parameters);
Rename\ConflictEngine\DeclarationConflictHelpers.cs (3)
31.Where(m => !m.Equals(renamedProperty) && m.Parameters.Length == renamedProperty.Parameters.Length); 34property => GetAllSignatures(((IPropertySymbol)property).Parameters, trimOptionalParameters));
Rename\IRenameRewriterLanguageService.cs (1)
143var conflictingParameter = prop.Parameters.FirstOrDefault(
Rename\RenameUtilities.cs (2)
345if (ordinal < associatedPropertyOrEvent.Parameters.Length) 347return associatedPropertyOrEvent.Parameters[ordinal];
Shared\Extensions\SyntaxGeneratorExtensions.cs (6)
73codeFactory.CreateArguments(overriddenProperty.Parameters)))); 79codeFactory.CreateArguments(overriddenProperty.Parameters)), 98codeFactory.CreateArguments(overriddenProperty.Parameters))); 116codeFactory.IdentifierName(overriddenProperty.Name)), codeFactory.CreateArguments(overriddenProperty.Parameters)))); 123codeFactory.IdentifierName(overriddenProperty.Name)), codeFactory.CreateArguments(overriddenProperty.Parameters)), 173parameters: overriddenProperty.RemoveInaccessibleAttributesAndAttributesOfTypes(containingType).Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
413IPropertySymbol nt => nt.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
93symbol.Parameters.Any(static (p, self) => p.Accept(self), this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
50Resolve(result, reader, metadataName, ordinal, property.Parameters);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (4)
21visitor.WriteRefKindArray(symbol.Parameters); 22visitor.WriteParameterTypesArray(symbol.OriginalDefinition.Parameters); 98getContextualType: static (property, i) => SafeGet(property.OriginalDefinition.Parameters, i)?.Type, 99property.OriginalDefinition.Parameters))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (4)
54property1.Parameters.Length != property2.Parameters.Length || 60return property1.Parameters.SequenceEqual( 61property2.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
601x.Parameters.Length == y.Parameters.Length && 604ParametersAreEquivalent(x.Parameters, y.Parameters, equivalentTypesWithDifferingAssemblies) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
244Hash.Combine(x.Parameters.Length, 249return CombineHashCodes(x.Parameters, currentHash, _parameterAggregator);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
566parameters ?? property.Parameters,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (3)
17var parameterList = property.Parameters; 46var someParameterHasAttribute = property.Parameters 60property.Parameters.SelectAsArray(static (p, arg) =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (6)
207if (property.Parameters.Length > 0) 209var arguments = generator.CreateArguments(property.Parameters); 220if (conflictingProperty is { GetMethod: not null, Parameters.Length: 0 } && 221property is { GetMethod: not null, Parameters.Length: 0 }) 246if (property.Parameters.Length > 0) 248var arguments = generator.CreateArguments(property.Parameters);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\DocumentationCommentIdTests.cs (2)
248CheckDeclarationIdExact<IPropertySymbol>("P:Acme.Widget.Item(System.Int32)", compilation, p => p.Parameters.Length == 1); 249CheckDeclarationIdExact<IPropertySymbol>("P:Acme.Widget.Item(System.String,System.Int32)", compilation, p => p.Parameters.Length == 2);
Microsoft.Extensions.Options.SourceGeneration (2)
ParserUtilities.cs (2)
83property.Kind == SymbolKind.Property && !property.IsStatic && property.GetMethod != null && property.Parameters.IsEmpty)) 97!property.IsStatic && property.GetMethod != null && property.Parameters.IsEmpty))
Microsoft.Gen.ContextualOptions (1)
Parser.cs (1)
84.Where(prop => prop.Parameters.IsEmpty)
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphNodeIdCreation.cs (1)
472if (property.Parameters.Any(static (p, symbol) => p.Name == symbol.Name, symbol))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
465AppendParametersPrototype(builder, symbol.Parameters, PrototypeFlags.ParameterTypes | PrototypeFlags.ParameterNames);
ObjectBrowser\DescriptionBuilder.cs (1)
498BuildParameterList(propertySymbol.Parameters);
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
39Return GetFunctionPrototype(propertySymbol, propertySymbol.Parameters, flags)
ObjectBrowser\DescriptionBuilder.vb (2)
259If propertySymbol.Parameters.Length > 0 Then 261BuildParameterList(propertySymbol.Parameters)
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
933propertyInfo.IsStatic || propertyInfo.Parameters.Length > 0 ||