@@ -16,7 +16,7 @@ namespace Nest.Resolvers
1616
1717 public class PropertyNameResolver : ExpressionVisitor
1818 {
19- private static readonly ElasticResolver ContractResolver = new ElasticResolver ( ) ;
19+ private static readonly ElasticResolver ContractResolver = new ElasticResolver ( ) ;
2020
2121 public ElasticPropertyAttribute GetElasticProperty ( MemberInfo info )
2222 {
@@ -25,19 +25,19 @@ public ElasticPropertyAttribute GetElasticProperty(MemberInfo info)
2525 return ( ( ElasticPropertyAttribute ) attributes . First ( ) ) ;
2626 return null ;
2727 }
28-
28+
2929 public ElasticTypeAttribute GetElasticPropertyFor < T > ( ) where T : class
3030 {
3131 return GetElasticPropertyForType ( typeof ( T ) ) ;
3232 }
33-
33+
3434 public ElasticTypeAttribute GetElasticPropertyFor ( Type type )
3535 {
3636 if ( ! type . IsClass && ! type . IsInterface )
3737 throw new ArgumentException ( "Type is not a class or interface" , "type" ) ;
3838 return GetElasticPropertyForType ( type ) ;
3939 }
40-
40+
4141 private ElasticTypeAttribute GetElasticPropertyForType ( Type type )
4242 {
4343 if ( ! type . IsClass && ! type . IsInterface )
@@ -66,7 +66,7 @@ public string Resolve(Expression expression)
6666 {
6767 var stack = new Stack < string > ( ) ;
6868 var properties = new Stack < ElasticPropertyAttribute > ( ) ;
69- Visit ( expression , stack , properties ) ;
69+ Visit ( expression , stack , properties ) ;
7070 return stack
7171 . Aggregate (
7272 new StringBuilder ( ) ,
@@ -75,7 +75,7 @@ public string Resolve(Expression expression)
7575 . ToString ( ) ;
7676 }
7777
78- protected override Expression VisitMemberAccess ( MemberExpression expression , Stack < string > stack , Stack < ElasticPropertyAttribute > properties )
78+ protected override Expression VisitMemberAccess ( MemberExpression expression , Stack < string > stack , Stack < ElasticPropertyAttribute > properties )
7979 {
8080 if ( stack != null )
8181 {
@@ -94,7 +94,7 @@ protected override Expression VisitMemberAccess(MemberExpression expression, Sta
9494 }
9595 stack . Push ( resolvedName ) ;
9696 }
97- return base . VisitMemberAccess ( expression , stack , properties ) ;
97+ return base . VisitMemberAccess ( expression , stack , properties ) ;
9898 }
9999
100100 protected override Expression VisitMethodCall ( MethodCallExpression m , Stack < string > stack , Stack < ElasticPropertyAttribute > properties )
0 commit comments