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); } }
public virtual void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument) { templateArgument.VisitChildren(this); }
public override void VisitTemplateParameterArgument(AstTemplateParameterArgument templateArgument) { templateArgument.Parent.Should().NotBeNull(); templateArgument.VisitChildren(this); }