@@ -14,22 +14,22 @@ namespace LEGO.AsyncAPI.Readers
1414
1515 public class ParsingContext
1616 {
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 ( ) ;
2121
22- internal Dictionary < string , Func < IAsyncApiAny , AsyncApiVersion , IAsyncApiExtension > > ExtensionParsers
22+ internal Dictionary < string , Func < IAsyncApiAny , IAsyncApiExtension > > ExtensionParsers
2323 {
2424 get ;
2525 set ;
2626 }
2727
28- = new ( ) ;
28+ = new ( ) ;
2929
3030 internal RootNode RootNode { get ; set ; }
3131
32- internal List < AsyncApiTag > Tags { get ; private set ; } = new ( ) ;
32+ internal List < AsyncApiTag > Tags { get ; private set ; } = new ( ) ;
3333
3434 public AsyncApiDiagnostic Diagnostic { get ; }
3535
@@ -94,13 +94,13 @@ private static string GetVersion(RootNode rootNode)
9494
9595 public void EndObject ( )
9696 {
97- this . _currentLocation . Pop ( ) ;
97+ this . currentLocation . Pop ( ) ;
9898 }
9999
100100 public string GetLocation ( )
101101 {
102102 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 ( ) ) ;
104104 }
105105
106106 public T GetFromTempStorage < T > ( string key , object scope = null )
@@ -144,7 +144,7 @@ public void SetTempStorage(string key, object value, object scope = null)
144144
145145 public void StartObject ( string objectName )
146146 {
147- this . _currentLocation . Push ( objectName ) ;
147+ this . currentLocation . Push ( objectName ) ;
148148 }
149149
150150 public bool PushLoop ( string loopId , string key )
0 commit comments