Package sanskrit

Class Ast.Arguments

java.lang.Object
sanskrit.Node
sanskrit.Ast.Arguments
Enclosing class:
Ast

public static final class Ast.Arguments extends Node
The parameters of a def or a lambda.
  • Field Details

    • args

      public final List<Ast.Arg> args
    • vararg

      public final Ast.Arg vararg
      The parameter after "*", or null.
    • kwonlyargs

      public final List<Ast.Arg> kwonlyargs
    • kwDefaults

      public final List<Ast.Expr> kwDefaults
      One per keyword-only parameter: its default, or null.
    • kwarg

      public final Ast.Arg kwarg
      The parameter after "**", or null.
    • defaults

      public final List<Ast.Expr> defaults
      The defaults of the last positional parameters.
  • Method Details

    • type

      public String type()
      Description copied from class: Node
      The name of the node in CPython's ast module ("Name", "BinOp"...).
      Specified by:
      type in class Node