@@ -14,22 +14,22 @@ namespace LEGO.AsyncAPI.Readers
14
14
15
15
public class ParsingContext
16
16
{
17
- private readonly Stack < string > _currentLocation = new ( ) ;
18
- private readonly Dictionary < string , object > tempStorage = new ( ) ;
19
- private readonly Dictionary < object , Dictionary < string , object > > scopedTempStorage = new ( ) ;
20
- private readonly Dictionary < string , Stack < string > > loopStacks = new ( ) ;
17
+ private readonly Stack < string > currentLocation = new ( ) ;
18
+ private readonly Dictionary < string , object > tempStorage = new ( ) ;
19
+ private readonly Dictionary < object , Dictionary < string , object > > scopedTempStorage = new ( ) ;
20
+ private readonly Dictionary < string , Stack < string > > loopStacks = new ( ) ;
21
21
22
- internal Dictionary < string , Func < IAsyncApiAny , AsyncApiVersion , IAsyncApiExtension > > ExtensionParsers
22
+ internal Dictionary < string , Func < IAsyncApiAny , IAsyncApiExtension > > ExtensionParsers
23
23
{
24
24
get ;
25
25
set ;
26
26
}
27
27
28
- = new ( ) ;
28
+ = new ( ) ;
29
29
30
30
internal RootNode RootNode { get ; set ; }
31
31
32
- internal List < AsyncApiTag > Tags { get ; private set ; } = new ( ) ;
32
+ internal List < AsyncApiTag > Tags { get ; private set ; } = new ( ) ;
33
33
34
34
public AsyncApiDiagnostic Diagnostic { get ; }
35
35
@@ -94,13 +94,13 @@ private static string GetVersion(RootNode rootNode)
94
94
95
95
public void EndObject ( )
96
96
{
97
- this . _currentLocation . Pop ( ) ;
97
+ this . currentLocation . Pop ( ) ;
98
98
}
99
99
100
100
public string GetLocation ( )
101
101
{
102
102
return "#/" + string . Join ( "/" ,
103
- this . _currentLocation . Reverse ( ) . Select ( s => s . Replace ( "~" , "~0" ) . Replace ( "/" , "~1" ) ) . ToArray ( ) ) ;
103
+ this . currentLocation . Reverse ( ) . Select ( s => s . Replace ( "~" , "~0" ) . Replace ( "/" , "~1" ) ) . ToArray ( ) ) ;
104
104
}
105
105
106
106
public T GetFromTempStorage < T > ( string key , object scope = null )
@@ -144,7 +144,7 @@ public void SetTempStorage(string key, object value, object scope = null)
144
144
145
145
public void StartObject ( string objectName )
146
146
{
147
- this . _currentLocation . Push ( objectName ) ;
147
+ this . currentLocation . Push ( objectName ) ;
148
148
}
149
149
150
150
public bool PushLoop ( string loopId , string key )
0 commit comments