void IGenerator.GetText(Scope scope, TextWriter writer, Scope context) { Dictionary<string, object> arguments; if (_definition.IsSetter) { arguments = _arguments.GetArgumentKeyNames(); } else { arguments = _arguments.GetArguments(scope, context); } _definition.GetText(writer, arguments, context); }
void IGenerator.GetText(TextWriter writer, Scope scope, Scope context, Action <Substitution> postProcessor) { Dictionary <string, object> arguments; if (_definition.IsSetter) { arguments = _arguments.GetArgumentKeyNames(); } else { arguments = _arguments.GetArguments(scope, context); } _definition.GetText(writer, arguments, context); }
void IGenerator.GetText(Scope scope, TextWriter writer, Scope context) { Dictionary <string, object> arguments; if (_definition.IsSetter) { arguments = _arguments.GetArgumentKeyNames(); } else if (_definition is CommandTagDefinition) { arguments = new Dictionary <string, object>(); foreach (var pair in _arguments.LookupDictionary) { arguments.Add(pair.Key.Name, pair.Value); } } else { arguments = _arguments.GetArguments(scope, context); } _definition.GetText(writer, arguments, context); }
void IGenerator.GetText(TextWriter writer, Scope scope, Scope context, Action <Substitution> postProcessor) { var arguments = GetArguments(scope, context); _definition.GetText(writer, arguments, context); }