public override void VisitParameter(ParameterSyntax node)
 {
     // ignore parameters in lambdaexpressions
     if (node.IsWithinLambda())
         return;
     var parameter = new Parameter(
         node.Identifier.ToString(),
         (ITypeSymbol)_semantic.GetSymbolInfo(node.Type).Symbol);
     _parameters.Add(parameter);
 }
Example #2
0
 public void Add(Parameter parameter) => _parameters.Add(parameter);
Example #3
0
 public bool IsEqual(Parameter other) => Name == other.Name && Type == other.Type;