Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        void IGenerator.GetText(TextWriter writer, Scope scope, Scope context, Action <Substitution> postProcessor)
        {
            var arguments = GetArguments(scope, context);

            _definition.GetText(writer, arguments, context);
        }