コード例 #1
0
ファイル: CodeGenerator.cs プロジェクト: polytronicgr/pytocs
        public CodeThrowExceptionStatement Throw(CodeExpression codeExpression)
        {
            var t = new CodeThrowExceptionStatement(codeExpression);

            Scope.Add(t);
            return(t);
        }
コード例 #2
0
ファイル: CodeGenerator.cs プロジェクト: polytronicgr/pytocs
        public CodeThrowExceptionStatement Throw()
        {
            var t = new CodeThrowExceptionStatement();

            Scope.Add(t);
            return(t);
        }
コード例 #3
0
 public int VisitThrow(CodeThrowExceptionStatement t)
 {
     writer.Write("throw");
     if (t.Expression != null)
     {
         writer.Write(" ");
         t.Expression.Accept(expWriter);
     }
     EndLineWithSemi();
     return(0);
 }