protected Binder(Type objectType, Type delegateType, MacroOptions options) { Debug.Assert(delegateType.IsSubclassOf(typeof(Delegate))); BuildIndex(); ObjectType = FindType(objectType); DelegateType = delegateType; Options = options; }
protected Binder(Type objectType, Type delegateType, MacroOptions options) { Debug.Assert(delegateType.IsSubclassOf(typeof(Delegate))); BuildIndex(); AppDomain.CurrentDomain.AssemblyLoad += AssemblyLoadEventHandler; ObjectType = FindType(objectType); DelegateType = delegateType; Options = options; NestedCodeblocks = null; }
internal Lexer(string source, MacroOptions options) { _Source = source; _options = options; }
internal static Binder <T, R> Create <T, R>(MacroOptions options) where R : class { return(new Binder <T, R>(options)); }
public static Compilation <T, R> Create <T, R>(MacroOptions options = null) where R : class { return(new Compilation <T, R>(options ?? MacroOptions.Default)); }
public static Compilation <T, Func <T[], T> > Create <T>(MacroOptions options = null) { return(new Compilation <T, Func <T[], T> >(options ?? MacroOptions.Default)); }
internal Parser(Lexer lexer, MacroOptions options) { _Lexer = lexer; _Input = lexer.AllTokens(); _options = options; }
public static Compilation<T, R> Create<T, R>(MacroOptions options = null) where R: Delegate { if (options?.ParseStatements == true) return new ScriptCompilation<T, R>(options); return new Compilation<T, R>(options ?? MacroOptions.Default); }
public static Compilation<T, Func<T[], T>> Create<T>(MacroOptions options = null) { if (options?.ParseStatements == true) return new ScriptCompilation<T, Func<T[], T>>(options); return new Compilation<T, Func<T[], T>>(options ?? MacroOptions.Default); }
internal Parser(IList <Token> input, MacroOptions options) { _Input = input; _options = options; }