15 references to WithAttributeLists
Microsoft.CodeAnalysis.CSharp (2)
Syntax.xml.Syntax.Generated.cs (2)
12376internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<AttributeListSyntax> attributeLists) => WithAttributeLists(attributeLists); 12395public new MethodDeclarationSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
126method = method.WithoutLeadingTrivia().WithAttributeLists(localFunction.AttributeLists).WithLeadingTrivia(method.GetLeadingTrivia());
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
135methodDeclaration = methodDeclaration.WithAttributeLists(setAccessorDeclaration.AttributeLists); 200methodDeclaration = methodDeclaration.WithAttributeLists(getAccessorDeclaration.AttributeLists);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
13436var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithReturnType(node.ReturnType).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Microsoft.Interop.ComInterfaceGenerator (2)
ComMethodContext.cs (2)
126.WithAttributeLists(List<AttributeListSyntax>()) 147.WithAttributeLists(List(GenerationContext.SignatureContext.AdditionalAttributes.Concat(MethodInfo.Attributes.Select(a => a.GenerateAttributeList()))))
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSExportGenerator.cs (3)
146.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 245.WithAttributeLists(List(attributes)) 251.WithAttributeLists(
JSImportGenerator.cs (1)
118.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList(
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3387return method.WithAttributeLists(newAttributeLists);
QuarantineTools.Tests (2)
QuarantineScriptTests.cs (2)
356return removed ? method.WithAttributeLists(SyntaxFactory.List(newLists)) : method; 401var updated = method.WithAttributeLists(newLists);