CloseScope() приватный Метод

private CloseScope ( ) : void
Результат void
Пример #1
0
 public IILGen Catch(Type exceptionType)
 {
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.MarkAndWriteLine(_ilGenerator, $"catch ({exceptionType.FullName})");
     _sourceCodeWriter.OpenScope();
     _ilGenerator.BeginCatchBlock(exceptionType);
     return(this);
 }
Пример #2
0
 void CloseInScope()
 {
     if (_sourceCodeWriter.Indent <= TypeLevelIndent)
     {
         return;
     }
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.WriteLine("");
 }
Пример #3
0
 void CloseInScope()
 {
     if (!_inScope)
     {
         return;
     }
     _sourceCodeWriter.CloseScope();
     _sourceCodeWriter.WriteLine("");
     _inScope = false;
 }
Пример #4
0
        Type FinishType()
        {
            var finalType = _typeBuilder.CreateType();

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