Skip to content

Commit

Permalink
Updated the C# member order layout so nested classes are wrapped in a…
Browse files Browse the repository at this point in the history
… region at the bottom of the parent class.
  • Loading branch information
asbjornu committed Dec 17, 2014
1 parent 062787e commit 305a4b1
Showing 1 changed file with 19 additions and 141 deletions.
160 changes: 19 additions & 141 deletions src/SharpRaven.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,30 @@
</Or>
</Match>
</Pattern>

<!--Special formatting of NUnit test fixture-->

<!--Default pattern-->
<Pattern RemoveAllRegions="true">
<Match>
<And Weight="100">
<Kind Is="class"/>
<HasAttribute CLRName="NUnit.Framework.TestFixtureAttribute" Inherit="true"/>
</And>
</Match>

<!--Setup/Teardown-->
<!-- Test Setup Region -->
<Entry>
<Match>
<And>
<Kind Is="method"/>
<Or>
<HasAttribute CLRName="NUnit.Framework.TestFixtureSetUpAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.TestFixtureTearDownAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.FixtureSetUpAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.SetUpAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.TearDownAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.FixtureSetUpAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.FixtureTearDownAttribute" Inherit="true"/>
<HasAttribute CLRName="NUnit.Framework.TestFixtureTearDownAttribute" Inherit="true"/>
</Or>
</And>
</Match>
<Sort>
<Name/>
</Sort>
<Group Region="Setup/Teardown"/>
</Entry>

<!--All other members-->
<Entry/>

<!--Test methods-->
<Entry>
<Match>
Expand All @@ -98,10 +91,6 @@
<Name/>
</Sort>
</Entry>
</Pattern>

<!--Default pattern-->
<Pattern>

<!--Public Delegates-->
<Entry>
Expand Down Expand Up @@ -159,7 +148,7 @@
<Access Order="public protected internal private"/>
</Sort>
</Entry>


<!--Destructors-->
<Entry>
<Match>
Expand All @@ -170,86 +159,8 @@
<Access Order="public protected internal private"/>
</Sort>
</Entry>


<!--Special Cases: ActiveRecord Attributes-->
<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.PrimaryKeyAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.BelongsToAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.OneToOneAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.PropertyAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.HasManyAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
<Kind Is="property"/>
<HasAttribute CLRName="Castle.ActiveRecord.HasAndBelongsToManyAttribute"/>
</And>
</Match>
<Sort>
<Access Order="public protected internal private"/>
<Name/>
</Sort>
</Entry>

<Entry>
<Match>
<And>
Expand All @@ -263,7 +174,6 @@
</Sort>
</Entry>


<!--Indexers and Properties-->
<Entry>
<Match>
Expand All @@ -281,7 +191,6 @@
</Sort>
</Entry>


<!--Event Declarations-->
<Entry>
<Match>
Expand All @@ -293,49 +202,18 @@
</Sort>
</Entry>


<!--Special Cases: Page/Control/Master Event Handlers-->
<Entry>
<Match>
<And>
<HandlesEvent/>
<Name Is=".*_PreInit"/>
</And>
</Match>
</Entry>

<Entry>
<Match>
<And>
<HandlesEvent/>
<Name Is=".*_Init"/>
</And>
</Match>
</Entry>

<Entry>
<Match>
<And>
<HandlesEvent/>
<Name Is=".*_PreLoad"/>
</And>
</Match>
</Entry>

<Entry>
<Match>
<And>
<HandlesEvent/>
<Name Is=".*_Load"/>
</And>
</Match>
</Entry>

<Entry>
<Match>
<And>
<HandlesEvent/>
<Name Is=".*_PreRender"/>
<Or>
<Name Is=".*_PreInit"/>
<Name Is=".*_Init"/>
<Name Is=".*_PreLoad"/>
<Name Is=".*_Load"/>
<Name Is=".*_PreRender"/>
</Or>
</And>
</Match>
</Entry>
Expand All @@ -353,7 +231,7 @@
<Name/>
</Sort>
</Entry>


<!--Methods-->
<Entry>
<Match>
Expand Down Expand Up @@ -388,7 +266,7 @@

<!--All Other Members-->
<Entry/>


<!--Nested Types-->
<Entry>
<Match>
Expand Down

0 comments on commit 305a4b1

Please sign in to comment.