AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
541symbol.Name);
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (11)
95Hash.Combine(x.Name,
102Hash.Combine(x.Name,
127Hash.Combine(x.Name, currentHash)))))));
144=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash));
177Hash.Combine(x.Name,
205return Hash.Combine(p.Name,
217return Hash.Combine(x.Name, currentHash);
222Hash.Combine(x.Name,
230Hash.Combine(x.Name,
246Hash.Combine(x.Name,
256Hash.Combine(x.Name,
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
89parameter.Name,
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
541symbol.Name);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
156name: p.Name,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (35)
2335=> oldParameters.SequenceEqual(newParameters, exact, (oldParameter, newParameter, exact) => oldParameter.Name == newParameter.Name && TypeParameterConstraintsEquivalent(oldParameter, newParameter, exact));
2567if (oldType.Name != newType.Name)
3129var createDeleteAndInsertEdits = oldSymbol.Name != newSymbol.Name;
3153renamedParameter ??= oldMethod.Parameters[i].Name != newMethod.Parameters[i].Name ? newMethod.Parameters[i] : null;
3583var key = (oldType.Name, oldType.Arity);
3617if (deletedTypes.TryGetValue((newType.Name, newType.Arity), out var deletedTypeIndices) && deletedTypeIndices.Count > 0)
3647if (attributeData.AttributeClass is { Name: CreateNewOnMetadataUpdateAttributeName, ContainingNamespace: { Name: "CompilerServices", ContainingNamespace: { Name: "Runtime", ContainingNamespace.Name: "System" } } })
3710else if (oldSymbol.Name != newSymbol.Name)
3950if (!hasParameterTypeChange && oldParameter.Name != newParameter.Name)
4383attributeData.AttributeClass!.Name,
4983oldCtor.GetParameters().First().Name != newCtor.GetParameters().First().Name &&
5265var arguments = new[] { newCapture.Name, GetDisplayName(GetLambda(newLambdaBody)) };
5469new[] { GetDisplayName(GetLambda(lambdaBody)), captures[firstAccessedCaptureIndex].Name, captures[i].Name }));
5643new[] { newCapture.Name }));
5665new[] { newCapture.Name }));
5708if (newCapture.Name != oldCapture.Name)
5714new[] { oldCapture.Name, newCapture.Name }));
5730new[] { newCapture.Name, oldTypeOpt.ToDisplayString(ErrorDisplayFormat) }));
5745new[] { newCapture.Name }));
5795new[] { oldCapture.Name }));
5808var name = oldCaptures[oldCaptureIndex].Name;
6053=> symbol is IMethodSymbol { Name: WellKnownMemberNames.TopLevelStatementsEntryPointMethodName };
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
74name: typeParameter.Name,
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (13)
126return string.Format(FeaturesResources.Implement_interface_through_0, ThroughMember.Name);
145var assemblyName = interfaceType.ContainingAssembly.Name;
156throughMember?.Name;
271IdentifiersMatch(State.ClassOrStructType.Name, name) ||
272State.ClassOrStructType.TypeParameters.Any(static (t, arg) => arg.self.IdentifiersMatch(t.Name, arg.name), (self: this, name));
279var memberNames = State.ClassOrStructType.GetAccessibleMembersInThisAndBaseTypes<ISymbol>(State.ClassOrStructType).Select(m => m.Name);
282string.Format("{0}_{1}", member.ContainingType.Name, member.Name),
284!implementedVisibleMembers.Any(m => IdentifiersMatch(m.Name, n)) &&
288return member.Name;
317memberName = generateInvisibleMember ? member.Name : memberName;
352if (member.Name != memberName)
406var accessibility = member.Name == memberName || generateAbstractly
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
NavigationBar\VisualBasicNavigationBarItemService.vb (18)
95Return typesAndDeclarations.Select(Function(kvp) Tuple.Create(kvp.Key, kvp.Value)).OrderBy(Function(t) t.Item1.Name)
133For Each member In type.GetMembers().OrderBy(Function(m) m.Name)
163Order By member.Name
172type.Name,
173type.Name,
193member.Name,
194member.Name,
238.GroupBy(Function(m) m.Name, CaseInsensitiveComparison.Comparer) _
260type.Name,
322Dim accessibleEvents = semanticModel.LookupSymbols(position, eventType).OfType(Of IEventSymbol).OrderBy(Function(e) e.Name)
348e.Name,
349e.Name,
361Dim eventContainerName = eventContainer?.Name
365e.Name,
376eventContainer.Name,
382String.Format(VBFeaturesResources._0_Events, containingType.Name),
418method.Name,
437member.Name,
Rename\VisualBasicRenameRewriterLanguageService.vb (21)
329fieldSymbol.Name = "_" + fieldSymbol.AssociatedSymbol.Name Then
529If oldIdentifier <> Me._renamedSymbol.Name Then
733CaseInsensitiveComparison.Equals(renamedSymbol.ContainingSymbol.Name, renamedSymbol.Name) Then
767renamedSymbol.Name,
784If renamedSymbol.ContainingType IsNot Nothing AndAlso renamedSymbol.ContainingType.GetMembers(renamedSymbol.Name).Contains(renamedSymbol) Then
786.Where(Function(t) CaseInsensitiveComparison.Equals(t.Name, renamedSymbol.Name)) _
805CaseInsensitiveComparison.Equals(renameSymbol.Name, "Current")
808(CaseInsensitiveComparison.Equals(renameSymbol.Name, "MoveNext") OrElse
809CaseInsensitiveComparison.Equals(renameSymbol.Name, "GetEnumerator")))
814If Not CaseInsensitiveComparison.Equals(renamedSymbol.Name, renameSymbol.Name) Then
907If CaseInsensitiveComparison.Equals(renamedSymbol.Name, "MoveNext") OrElse
908CaseInsensitiveComparison.Equals(renamedSymbol.Name, "GetEnumerator") OrElse
909CaseInsensitiveComparison.Equals(renamedSymbol.Name, "Current") Then
933renamedSymbol.Name) _
944If CaseInsensitiveComparison.Equals(symbol.Name, "MoveNext") Then
948ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "GetEnumerator") Then
957ElseIf CaseInsensitiveComparison.Equals(symbol.Name, "Current") Then
Editing\SyntaxGenerator.cs (16)
136field.Name,
178=> MethodDeclaration(method, method.Name, statements);
206decl = WithDefaultConstraint(decl, typeParameter.Name);
212decl = WithTypeConstraint(decl, typeParameter.Name, SpecialTypeConstraintKind.ReferenceType);
277=> method.Name switch
337symbol.Name,
400property.Name,
498symbol.Name,
536symbol.Name,
565constructorMethod.ContainingType != null ? constructorMethod.ContainingType.Name : "New",
774type.Name,
783type.Name,
790type.Name,
796type.Name,
804type.Name,
882declaration = this.WithTypeConstraint(declaration, tp.Name,
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (8)
239!syntaxFacts.StringComparer.Equals(aliasSymbol.Name, aliasSymbol.Target.Name))
297symbol, localAliasSymbol.Name, state, cancellationToken).ConfigureAwait(false);
301if (TryGetNameWithoutAttributeSuffix(localAliasSymbol.Name, state.SyntaxFacts, out var simpleName))
321aliasSymbol, aliasSymbol.Name, state, cancellationToken).ConfigureAwait(false);
325if (TryGetNameWithoutAttributeSuffix(aliasSymbol.Name, state.SyntaxFacts, out var simpleName))
823additionalProperty = new KeyValuePair<string, string>(propertyName, symbol.Name);
894symbol, symbol.Name, state, cancellationToken);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (4)
24return GetAllMatchingGlobalAliasNamesAsync(project, symbol.Name, symbol.Arity, cancellationToken);
62await AddDocumentsToSearchAsync(symbol.Name, project, documents, result, cancellationToken).ConfigureAwait(false);
147namedType, namedType.Name, state, nonAliasReferences, cancellationToken).ConfigureAwait(false);
154if (state.SyntaxFacts.StringComparer.Equals(namedType.Name, globalAlias))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
26namedType.Name,
Shared\Extensions\IMethodSymbolExtensions.cs (13)
60if (method.TypeParameters.Select(t => t.Name).SequenceEqual(newNames))
83method.Name,
86CodeGenerationSymbolFactory.CreateParameterSymbol(p.GetAttributes(), p.RefKind, p.IsParams, p.Type.SubstituteTypes(mapping, typeGenerator), p.Name, p.IsOptional,
94if (parameterList.Select(p => p.Name).SequenceEqual(parameterNames))
109method.Name,
161method.Parameters.SelectAsArray(p => p.Name), isCaseSensitive: syntaxFacts.IsCaseSensitive);
165.Select(tp => tp.Name)
166.Concat(method.Name)
167.Concat(containingType.Name);
173method.TypeParameters.SelectAsArray(tp => tp.Name),
207p.RefKind, p.IsParams, p.Type, p.Name, p.IsOptional,
231!method1.Parameters.Select(p => p.Name).SequenceEqual(method2.Parameters.Select(p => p.Name)))
Shared\Extensions\SyntaxGeneratorExtensions.cs (26)
109TryGetValue(parameterToNewFieldMap, parameter.Name, out var fieldName))
131TryGetValue(parameterToNewPropertyMap, parameter.Name, out var propertyName))
166value = symbol.Name;
182factory.IdentifierName(parameter.Name))).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation);
190var condition = factory.CreateNullCheckExpression(semanticModel, parameter.Name);
228var parameterName = parameter.Name;
296factory.IdentifierName(parameter.Name))));
306factory.IdentifierName(parameter.Name),
355var getName = overriddenProperty.GetMethod?.Name;
356var setName = overriddenProperty.SetMethod?.Name;
383codeFactory.IdentifierName(overriddenProperty.Name)), codeFactory.CreateArguments(overriddenProperty.Parameters))));
390codeFactory.IdentifierName(overriddenProperty.Name)), codeFactory.CreateArguments(overriddenProperty.Parameters)),
402codeFactory.IdentifierName(overriddenProperty.Name))));
408codeFactory.IdentifierName(overriddenProperty.Name)),
440name: overriddenProperty.Name,
463name: overriddenEvent.Name);
532? codeFactory.IdentifierName(overriddenMethod.Name)
533: codeFactory.GenericName(overriddenMethod.Name, typeParams)),
561? generator.GenericName(method.Name, method.TypeArguments)
562: generator.IdentifierName(method.Name);
582through, generator.IdentifierName(throughMember.Name));
630generator.IdentifierName(explicitlyImplementedProperty.Name));
644? factory.GenericName(classOrStructType.Name, classOrStructType.TypeArguments)
645: factory.IdentifierName(classOrStructType.Name);
659throughExpression, generator.IdentifierName(property.Name));
683throughExpression, generator.IdentifierName(property.Name));
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (11)
95Hash.Combine(x.Name,
102Hash.Combine(x.Name,
127Hash.Combine(x.Name, currentHash)))))));
144=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash));
177Hash.Combine(x.Name,
205return Hash.Combine(p.Name,
217return Hash.Combine(x.Name, currentHash);
222Hash.Combine(x.Name,
230Hash.Combine(x.Name,
246Hash.Combine(x.Name,
256Hash.Combine(x.Name,