File tree Expand file tree Collapse file tree 1 file changed +11
-28
lines changed
src/coreclr/tools/Common/TypeSystem/Ecma Expand file tree Collapse file tree 1 file changed +11
-28
lines changed Original file line number Diff line number Diff line change @@ -327,19 +327,10 @@ public bool IsFieldSignature
327327
328328 public MethodSignature ParseMethodSignature ( )
329329 {
330- try
331- {
332- _indexStack = new Stack < int > ( ) ;
333- _indexStack . Push ( 0 ) ;
334- _embeddedSignatureDataList = new List < EmbeddedSignatureData > ( ) ;
335- return ParseMethodSignatureInternal ( skipEmbeddedSignatureData : false ) ;
336- }
337- finally
338- {
339- _indexStack = null ;
340- _embeddedSignatureDataList = null ;
341- }
342-
330+ _indexStack = new Stack < int > ( ) ;
331+ _indexStack . Push ( 0 ) ;
332+ _embeddedSignatureDataList = new List < EmbeddedSignatureData > ( ) ;
333+ return ParseMethodSignatureInternal ( skipEmbeddedSignatureData : false ) ;
343334 }
344335
345336 private MethodSignature ParseMethodSignatureInternal ( bool skipEmbeddedSignatureData )
@@ -473,21 +464,13 @@ public TypeDesc ParseFieldSignature()
473464
474465 public TypeDesc ParseFieldSignature ( out EmbeddedSignatureData [ ] embeddedSigData )
475466 {
476- try
477- {
478- _indexStack = new Stack < int > ( ) ;
479- _indexStack . Push ( 1 ) ;
480- _indexStack . Push ( 0 ) ;
481- _embeddedSignatureDataList = new List < EmbeddedSignatureData > ( ) ;
482- TypeDesc parsedType = ParseFieldSignature ( ) ;
483- embeddedSigData = _embeddedSignatureDataList . Count == 0 ? null : _embeddedSignatureDataList . ToArray ( ) ;
484- return parsedType ;
485- }
486- finally
487- {
488- _indexStack = null ;
489- _embeddedSignatureDataList = null ;
490- }
467+ _indexStack = new Stack < int > ( ) ;
468+ _indexStack . Push ( 1 ) ;
469+ _indexStack . Push ( 0 ) ;
470+ _embeddedSignatureDataList = new List < EmbeddedSignatureData > ( ) ;
471+ TypeDesc parsedType = ParseFieldSignature ( ) ;
472+ embeddedSigData = _embeddedSignatureDataList . Count == 0 ? null : _embeddedSignatureDataList . ToArray ( ) ;
473+ return parsedType ;
491474 }
492475
493476 public LocalVariableDefinition [ ] ParseLocalsSignature ( )
You can’t perform that action at this time.
0 commit comments