Ejemplo n.º 1
0
 public static IEnumerable <TemplateArgument> GetArguments(this TemplateSpecializationType type)
 {
     for (var x = 0; x < type.ArgumentsCount; x++)
     {
         var argument = type.getArguments((uint)x);
         yield return(argument);
     }
 }
Ejemplo n.º 2
0
        public override AST.Type VisitTemplateSpecialization(TemplateSpecializationType type)
        {
            var _type = new CppSharp.AST.TemplateSpecializationType();

            for (uint i = 0; i < type.ArgumentsCount; ++i)
            {
                var arg  = type.getArguments(i);
                var _arg = VisitTemplateArgument(arg);
                _type.Arguments.Add(_arg);
            }

            _type.Template  = declConverter.Visit(type.Template) as AST.Template;
            _type.Desugared = Visit(type.Desugared);

            VisitType(type, _type);

            return(_type);
        }