Exemple #1
0
        public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
        {
            templateArgument.VisitChildren(this);

            var templDef = templateArgument.ParentAs <AstTypeReferenceType>()?.TemplateDefinition;

            if (templDef is not null)
            {
                var param = templDef.TemplateParameterAt <AstTemplateParameter>(templateArgument.OrderIndex);
                templateArgument.TrySetParameterDefinition(param);
            }

            var funcDef = templateArgument.ParentAs <AstFunctionReference>()?.FunctionDefinition;

            if (funcDef is not null)
            {
                var param = funcDef.TemplateParameterAt <AstTemplateParameter>(templateArgument.OrderIndex);
                templateArgument.TrySetParameterDefinition(param);
            }
        }
Exemple #2
0
 public virtual void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     templateArgument.VisitChildren(this);
 }
Exemple #3
0
 public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     templateArgument.Parent.Should().NotBeNull();
     templateArgument.VisitChildren(this);
 }