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); } }
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); }