Example #1
0
 public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     if (templateArgument.HasSymbol)
     {
         templateArgument.Symbol.RemoveReference(templateArgument);
     }
     base.VisitTemplateParameterArgument(templateArgument);
 }
Example #2
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);
            }
        }
Example #3
0
 public virtual void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     templateArgument.VisitChildren(this);
 }
Example #4
0
 public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     templateArgument.Symbol.Should().NotBeNull();
     base.VisitTemplateParameterArgument(templateArgument);
 }
Example #5
0
 public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument)
 {
     templateArgument.Parent.Should().NotBeNull();
     templateArgument.VisitChildren(this);
 }