Exemple #1
0
 protected AstTemplateParameter(AstTemplateParameter parameterToCopy)
     : base(AstNodeKind.TemplateParameter)
 {
     Context = parameterToCopy.Context;
     if (parameterToCopy.HasSymbol)
     {
         _symbol = parameterToCopy.Symbol;
     }
 }
Exemple #2
0
 public bool TrySetParameterDefinition(AstTemplateParameter templateOrGenericParameterDefinition)
 => Ast.SafeSet(ref _parameterDefinition, templateOrGenericParameterDefinition);