src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (11)
92Hash.Combine(x.Name,
99Hash.Combine(x.Name,
124Hash.Combine(x.Name, currentHash)))))));
141=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash));
174Hash.Combine(x.Name,
202return Hash.Combine(p.Name,
214return Hash.Combine(x.Name, currentHash);
219Hash.Combine(x.Name,
227Hash.Combine(x.Name,
243Hash.Combine(x.Name,
255Hash.Combine(x.Name,
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
74name: typeParameter.Name,
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
86symbol.Name,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
26namedType.Name,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (20)
70return factory.Argument(parameter.RefKind, factory.IdentifierName(parameter.Name));
108? generator.GenericName(method.Name, method.TypeArguments)
109: generator.IdentifierName(method.Name));
120var name = generator.IdentifierName(throughMember.Name);
172generator.IdentifierName(explicitlyImplementedProperty.Name));
186? factory.GenericName(classOrStructType.Name, classOrStructType.TypeArguments)
187: factory.IdentifierName(classOrStructType.Name);
205throughExpression, generator.IdentifierName(property.Name));
224return [generator.ReturnStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name))];
244throughExpression, generator.IdentifierName(property.Name));
265return [generator.ExpressionStatement(generator.AssignmentStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name), generator.IdentifierName(parameter.Name)))];
284value = symbol.Name;
299TryGetValue(parameterToNewFieldMap, parameter.Name, out var fieldName))
321TryGetValue(parameterToNewPropertyMap, parameter.Name, out var propertyName))
360var parameterName = parameter.Name;
430factory.IdentifierName(parameter.Name))));
440factory.IdentifierName(parameter.Name),
453factory.IdentifierName(parameter.Name))).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation);
462var condition = factory.CreateNullCheckExpression(generatorInternal, semanticModel, parameter.Name);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
111.GetMembers(method.Name)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
88parameter.Name,
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
111.GetMembers(method.Name)
Rename\CSharpRenameRewriterLanguageService.cs (22)
573if (oldIdentifier != _renamedSymbol.Name)
761.Where(s => s.MatchesKind(SymbolKind.Local, SymbolKind.Parameter) && s.Name == token.ValueText);
798AddSymbolSourceSpans(conflicts, namedType.GetMembers(renamedSymbol.Name), reverseMappedLocations);
803containingNamedType.Name == renamedSymbol.Name)
909if (renamedSymbol.ContainingType != null && renamedSymbol.ContainingType.GetMembers(renamedSymbol.Name).Contains(renamedSymbol))
912.Where(t => t.Name == renamedSymbol.Name)
983string.Compare(renameSymbol.Name, "Current", StringComparison.OrdinalIgnoreCase) == 0;
988(string.Compare(renameSymbol.Name, WellKnownMemberNames.MoveNextMethodName, StringComparison.OrdinalIgnoreCase) == 0 ||
989string.Compare(renameSymbol.Name, WellKnownMemberNames.GetEnumeratorMethodName, StringComparison.OrdinalIgnoreCase) == 0 ||
990string.Compare(renameSymbol.Name, WellKnownMemberNames.GetAwaiter, StringComparison.OrdinalIgnoreCase) == 0 ||
991string.Compare(renameSymbol.Name, WellKnownMemberNames.DeconstructMethodName, StringComparison.OrdinalIgnoreCase) == 0));
997if (renamedSymbol.Name != renameSymbol.Name)
1032if ((renamedSymbol.Name == "MoveNext" || renamedSymbol.Name == "GetEnumerator" || renamedSymbol.Name == "Current") && renamedSymbol.GetAllTypeArguments().Length == 0)
1042renamedSymbol.Name)
1056if (symbol.Name == "MoveNext")
1063else if (symbol.Name == "GetEnumerator")
1074else if (symbol.Kind == SymbolKind.Property && symbol.Name == "Current")
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
579symbol.Name);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
74name: typeParameter.Name,
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
86symbol.Name,
Rename\VisualBasicRenameRewriterLanguageService.vb (17)
328fieldSymbol.Name = "_" + fieldSymbol.AssociatedSymbol.Name Then
528If oldIdentifier <> Me._renamedSymbol.Name Then
741CaseInsensitiveComparison.Equals(renamedSymbol.ContainingSymbol.Name, renamedSymbol.Name) Then
775renamedSymbol.Name,
792If renamedSymbol.ContainingType IsNot Nothing AndAlso renamedSymbol.ContainingType.GetMembers(renamedSymbol.Name).Contains(renamedSymbol) Then
794.Where(Function(t) CaseInsensitiveComparison.Equals(t.Name, renamedSymbol.Name)) _
813CaseInsensitiveComparison.Equals(renameSymbol.Name, "Current")
816(CaseInsensitiveComparison.Equals(renameSymbol.Name, "MoveNext") OrElse
817CaseInsensitiveComparison.Equals(renameSymbol.Name, "GetEnumerator")))
822If Not CaseInsensitiveComparison.Equals(renamedSymbol.Name, renameSymbol.Name) Then
915If CaseInsensitiveComparison.Equals(renamedSymbol.Name, "MoveNext") OrElse
916CaseInsensitiveComparison.Equals(renamedSymbol.Name, "GetEnumerator") OrElse
917CaseInsensitiveComparison.Equals(renamedSymbol.Name, "Current") Then
941renamedSymbol.Name) _
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
247Return parameter.Name
Editing\SyntaxGenerator.cs (17)
145field.Name,
187=> MethodDeclaration(method, method.Name, statements);
215decl = WithDefaultConstraint(decl, typeParameter.Name);
221decl = WithTypeConstraint(decl, typeParameter.Name, SpecialTypeConstraintKind.ReferenceType);
284method.Name,
285isImplicitConversion: method.Name is WellKnownMemberNames.ImplicitConversionName,
324symbol.Name,
391property.Name,
493symbol.Name,
531symbol.Name,
560constructorMethod.ContainingType != null ? constructorMethod.ContainingType.Name : "New",
762type.Name,
771type.Name,
778type.Name,
784type.Name,
792type.Name,
870declaration = this.WithTypeConstraint(declaration, tp.Name,
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (10)
233!syntaxFacts.StringComparer.Equals(aliasSymbol.Name, aliasSymbol.Target.Name))
294symbol, localAliasSymbol.Name, state, processResult, processResultData, cancellationToken);
298if (TryGetNameWithoutAttributeSuffix(localAliasSymbol.Name, state.SyntaxFacts, out var simpleName))
316aliasSymbol, aliasSymbol.Name, state, processResult, processResultData, cancellationToken);
320if (TryGetNameWithoutAttributeSuffix(aliasSymbol.Name, state.SyntaxFacts, out var simpleName))
774additionalProperties.Add((key, symbol.Name));
785additionalProperties.Add((ContainingTypeInfoPropertyName, containingType.Name));
791additionalProperties.Add((ContainingMemberInfoPropertyName, containingSymbol.Name));
867symbol, symbol.Name, state, processResult, processResultData, cancellationToken);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (5)
24return GetAllMatchingGlobalAliasNamesAsync(project, symbol.Name, symbol.Arity, cancellationToken);
62await AddDocumentsToSearchAsync(symbol.Name, project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
148namedType, namedType.Name, state, processResult, processResultData, cancellationToken);
153foreach (var localAlias in state.Cache.SyntaxTreeIndex.GetAliases(namedType.Name, namedType.Arity))
163if (state.SyntaxFacts.StringComparer.Equals(namedType.Name, alias))
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (6)
39return FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name);
50FindReferencesInDocumentUsingIdentifier(symbol, symbol.Name, state, processResult, processResultData, cancellationToken);
140if (IdentifiersMatch(syntaxFacts, parameter.Name, token))
162if (!syntaxFacts.TextMatch(methodSymbol1.Parameters[i].Name, methodSymbol2.Parameters[i].Name))
222containingMethod.Name == WellKnownMemberNames.DelegateBeginInvokeName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (11)
92Hash.Combine(x.Name,
99Hash.Combine(x.Name,
124Hash.Combine(x.Name, currentHash)))))));
141=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash));
174Hash.Combine(x.Name,
202return Hash.Combine(p.Name,
214return Hash.Combine(x.Name, currentHash);
219Hash.Combine(x.Name,
227Hash.Combine(x.Name,
243Hash.Combine(x.Name,
255Hash.Combine(x.Name,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
26namedType.Name,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (11)
26method.Parameters.SelectAsArray(p => p.Name), isCaseSensitive: syntaxFacts.IsCaseSensitive);
30.Select(tp => tp.Name)
31.Concat(method.Name)
32.Concat(containingType.Name);
38method.TypeParameters.SelectAsArray(tp => tp.Name),
47if (method.TypeParameters.Select(t => t.Name).SequenceEqual(newNames))
70method.Name,
73CodeGenerationSymbolFactory.CreateParameterSymbol(p.GetAttributes(), p.RefKind, p.IsParams, p.Type.SubstituteTypes(mapping, typeGenerator), p.Name, p.IsOptional,
81if (parameterList.Select(p => p.Name).SequenceEqual(parameterNames))
96method.Name,
170p.RefKind, p.IsParams, p.Type, p.Name, p.IsOptional,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (20)
70return factory.Argument(parameter.RefKind, factory.IdentifierName(parameter.Name));
108? generator.GenericName(method.Name, method.TypeArguments)
109: generator.IdentifierName(method.Name));
120var name = generator.IdentifierName(throughMember.Name);
172generator.IdentifierName(explicitlyImplementedProperty.Name));
186? factory.GenericName(classOrStructType.Name, classOrStructType.TypeArguments)
187: factory.IdentifierName(classOrStructType.Name);
205throughExpression, generator.IdentifierName(property.Name));
224return [generator.ReturnStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name))];
244throughExpression, generator.IdentifierName(property.Name));
265return [generator.ExpressionStatement(generator.AssignmentStatement(generator.MemberAccessExpression(generator.ThisExpression(), property.Name), generator.IdentifierName(parameter.Name)))];
284value = symbol.Name;
299TryGetValue(parameterToNewFieldMap, parameter.Name, out var fieldName))
321TryGetValue(parameterToNewPropertyMap, parameter.Name, out var propertyName))
360var parameterName = parameter.Name;
430factory.IdentifierName(parameter.Name))));
440factory.IdentifierName(parameter.Name),
453factory.IdentifierName(parameter.Name))).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation);
462var condition = factory.CreateNullCheckExpression(generatorInternal, semanticModel, parameter.Name);