public override object Visit (Arglist argListExpression) { var result = new ArgListExpression (); result.AddChild (new CSharpTokenNode (Convert (argListExpression.Location), "__arglist".Length), ArgListExpression.Roles.Keyword); var location = LocationsBag.GetLocations (argListExpression); if (location != null) result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), ArgListExpression.Roles.LPar); AddArguments (result, location, argListExpression.Arguments); if (location != null) result.AddChild (new CSharpTokenNode (Convert (location[1]), 1), ArgListExpression.Roles.RPar); return result; }
public override object Visit (ArglistAccess argListAccessExpression) { var result = new ArgListExpression (); result.IsAccess = true; result.AddChild (new CSharpTokenNode (Convert (argListAccessExpression.Location), "__arglist".Length), ArgListExpression.Roles.Keyword); return result; }