public Context(Context parent = null, string name = null, ModuleContextEnum moduleContext = ModuleContextEnum.Namespace, StatementContextEnum statementContext = StatementContextEnum.Statement, Dictionary <string, Local> locals = null, string variadicArgumentName = null, string keywordArgumentName = null, string typeConstraint = null, MethodConfig methodConfing = null, bool isSetterDef = false) { _parent = parent; _name = name; _moduleContext = moduleContext; _statementContext = statementContext; _locals = locals ?? new Dictionary <string, Local>(); _variadicArgumentName = variadicArgumentName; _keywordArgumentName = keywordArgumentName; _typeConstraint = typeConstraint; _methodConfig = methodConfing; _isSetterDef = isSetterDef; }
public Context EnterFunction(string name, string variadicArgumentName, string keywordArgumentName, MethodConfig mc, bool isSetterDef) { return(new Context(this, name, ModuleContextEnum.Function, StatementContextEnum.Statement, null, variadicArgumentName, keywordArgumentName, null, mc, isSetterDef)); }