File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ namespace StyleCop.Analyzers.DocumentationRules
1111 using System . Threading ;
1212 using System . Threading . Tasks ;
1313 using System . Xml . Linq ;
14+ using Helpers . ObjectPools ;
1415 using Microsoft . CodeAnalysis ;
1516 using Microsoft . CodeAnalysis . CodeActions ;
1617 using Microsoft . CodeAnalysis . CodeFixes ;
1718 using Microsoft . CodeAnalysis . CSharp ;
1819 using Microsoft . CodeAnalysis . Formatting ;
1920 using StyleCop . Analyzers . Helpers ;
2021 using StyleCop . Analyzers . Settings . ObjectModel ;
21- using Helpers . ObjectPools ;
2222
2323 /// <summary>
2424 /// Implements a code fix for file header diagnostics.
Original file line number Diff line number Diff line change 11// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
4- // This code was copied from the Roslyn code base (and slightly modified)
5- using System ;
6- using System . Diagnostics ;
7- using System . Threading ;
8-
94namespace StyleCop . Analyzers . Helpers . ObjectPools
105{
6+ // This code was copied from the Roslyn code base (and slightly modified)
7+ using System ;
8+ using System . Diagnostics ;
9+ using System . Threading ;
10+
1111 /// <summary>
1212 /// Generic implementation of object pooling pattern with predefined pool size limit. The main
1313 /// purpose is that limited number of frequently used objects can be kept in the pool for
Original file line number Diff line number Diff line change 11// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
4- // This code was copied from the Roslyn code base (and slightly modified)
5- using System ;
6- using System . Collections . Generic ;
7- using System . Text ;
8-
94namespace StyleCop . Analyzers . Helpers . ObjectPools
105{
6+ // This code was copied from the Roslyn code base (and slightly modified)
7+ using System ;
8+ using System . Collections . Generic ;
9+ using System . Text ;
10+
1111 /// <summary>
1212 /// this is RAII object to automatically release pooled object when its owning pool
1313 /// </summary>
Original file line number Diff line number Diff line change 11// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
4- // This code was copied from the Roslyn code base (and slightly modified)
5- using System . Collections . Generic ;
6- using System . Text ;
7-
84namespace StyleCop . Analyzers . Helpers . ObjectPools
95{
6+ // This code was copied from the Roslyn code base (and slightly modified)
7+ using System . Collections . Generic ;
8+ using System . Text ;
9+
1010 internal static class SharedPoolExtensions
1111 {
1212 private const int Threshold = 512 ;
Original file line number Diff line number Diff line change 11// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
4- // This code was copied from the Roslyn code base (and slightly modified)
5- using System ;
6- using System . Collections . Generic ;
7-
84namespace StyleCop . Analyzers . Helpers . ObjectPools
95{
6+ // This code was copied from the Roslyn code base (and slightly modified)
7+ using System ;
8+ using System . Collections . Generic ;
9+
1010 /// <summary>
1111 /// Shared object pool for roslyn
1212 ///
Original file line number Diff line number Diff line change 11// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
4- // This code was copied from the Roslyn code base (and slightly modified)
5- using System . Text ;
6-
74namespace StyleCop . Analyzers . Helpers . ObjectPools
85{
6+ // This code was copied from the Roslyn code base (and slightly modified)
7+ using System . Text ;
8+
99 internal static class StringBuilderPool
1010 {
1111 public static StringBuilder Allocate ( )
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ namespace StyleCop.Analyzers.NamingRules
88 using System . Text ;
99 using System . Threading . Tasks ;
1010 using Helpers ;
11+ using Helpers . ObjectPools ;
1112 using Microsoft . CodeAnalysis ;
1213 using Microsoft . CodeAnalysis . CodeActions ;
1314 using Microsoft . CodeAnalysis . CodeFixes ;
14- using Helpers . ObjectPools ;
1515
1616 /// <summary>
1717 /// Implements a code fix for <see cref="SA1310FieldNamesMustNotContainUnderscore"/>.
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace StyleCop.Analyzers.SpacingRules
1010 using System . Text ;
1111 using System . Threading ;
1212 using System . Threading . Tasks ;
13+ using Helpers . ObjectPools ;
1314 using Microsoft . CodeAnalysis ;
1415 using Microsoft . CodeAnalysis . CodeActions ;
1516 using Microsoft . CodeAnalysis . CodeFixes ;
1617 using Microsoft . CodeAnalysis . Text ;
1718 using StyleCop . Analyzers . Helpers ;
18- using Helpers . ObjectPools ;
1919
2020 /// <summary>
2121 /// Implements a code fix for <see cref="SA1027TabsMustNotBeUsed"/>.
Original file line number Diff line number Diff line change 133133 <Compile Include =" Helpers\LocationHelpers.cs" />
134134 <Compile Include =" Helpers\NamedTypeHelpers.cs" />
135135 <Compile Include =" Helpers\NameSyntaxHelpers.cs" />
136- <Compile Include =" Helpers\ObjectPools\Extensions .cs" />
137- <Compile Include =" Helpers\ObjectPools\ObjectPool .cs" />
138- <Compile Include =" Helpers\ObjectPools\PooledObject .cs" />
136+ <Compile Include =" Helpers\ObjectPools\ObjectPool{T} .cs" />
137+ <Compile Include =" Helpers\ObjectPools\PooledObject{T} .cs" />
138+ <Compile Include =" Helpers\ObjectPools\SharedPoolExtensions .cs" />
139139 <Compile Include =" Helpers\ObjectPools\SharedPools.cs" />
140140 <Compile Include =" Helpers\ObjectPools\StringBuilderPool.cs" />
141141 <Compile Include =" Helpers\RenameHelper.cs" />
You can’t perform that action at this time.
0 commit comments