Example #1
0
 public static void Reset()
 {
     Context = new ExecutionContext();
 }
Example #2
0
        public static string Build(ExecutionContext executionContext, string typeDeclaration, string statement, string returnStatement, string memberDeclaration, string usingStatement)
        {
            context = executionContext;

            return UsingStatements +
                   CustomUsingStatements() +
                   usingStatement +
                   TypeDeclarations() +
                   typeDeclaration +
                   ClassPrefix +
                       MemberDeclarations() +
                       memberDeclaration +
                       InteropDeclarations +
                       FuncPrefix +
                       CallStack() +
                       statement +
                       (returnStatement ?? DefaultReturnStatement) +
                   FuncSuffix;
        }
Example #3
0
 static Repl()
 {
     Context = new ExecutionContext();
 }