Пример #1
0
        public override AST.Type VisitTemplateParameter(TemplateParameterType type)
        {
            var _type = new AST.TemplateParameterType();

            _type.Parameter = DeclConverter.VisitTemplateParameter(type.Parameter);
            VisitType(type, _type);
            return(_type);
        }
Пример #2
0
        public virtual string VisitTemplateParameterType(TemplateParameterType param, TypeQualifiers quals)
        {
            if (param.Parameter.Name == null)
            {
                return(string.Empty);
            }

            return(param.Parameter.Name);
        }
Пример #3
0
        public virtual bool VisitTemplateParameterType(TemplateParameterType param,
                                                       TypeQualifiers quals)
        {
            if (!VisitType(param, quals))
            {
                return(false);
            }

            return(true);
        }
Пример #4
0
 public TemplateParameterType(TemplateParameterType type)
     : base(type)
 {
     Parameter = new TypeTemplateParameter
     {
         Constraint = type.Parameter.Constraint,
         Name       = type.Parameter.Name
     };
     Depth           = type.Depth;
     Index           = type.Index;
     IsParameterPack = type.IsParameterPack;
 }
Пример #5
0
 public virtual bool VisitTemplateParameterType(TemplateParameterType param,
                                                TypeQualifiers quals)
 {
     return(VisitType(param, quals));
 }
Пример #6
0
 public TemplateParameterSubstitutionType(TemplateParameterSubstitutionType type)
     : base(type)
 {
     Replacement       = new QualifiedType((Type)type.Replacement.Type.Clone(), type.Replacement.Qualifiers);
     ReplacedParameter = (TemplateParameterType)type.ReplacedParameter.Clone();
 }