CloseScope() private method

private CloseScope ( ) : void
return void
Esempio n. 1
0
 public IILGen Catch(Type exceptionType)
 {
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.MarkAndWriteLine(_ilGenerator, $"catch ({exceptionType.FullName})");
     _sourceCodeWriter.OpenScope();
     _ilGenerator.BeginCatchBlock(exceptionType);
     return(this);
 }
Esempio n. 2
0
 void CloseInScope()
 {
     if (_sourceCodeWriter.Indent <= TypeLevelIndent)
     {
         return;
     }
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.WriteLine("");
 }
Esempio n. 3
0
 void CloseInScope()
 {
     if (!_inScope)
     {
         return;
     }
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.WriteLine("");
     _inScope = false;
 }
Esempio n. 4
0
        Type FinishType()
        {
            var finalType = _typeBuilder.CreateType();

            _forbidenInstructions.FinishType(finalType);
            _assemblyBuilder.Save(_moduleBuilder.ScopeName);
            _sourceCodeWriter.CloseScope();
            _sourceCodeWriter.Dispose();
            //CheckInPeVerify();
            return(finalType);
        }