Class Ast.RecordSelector

  • Enclosing class:
    Ast

    public static class Ast.RecordSelector
    extends Ast.Exp
    Parse tree node of a record selector.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name  
      int slot
      Set during validation, after the type of the argument has been deduced, contains the ordinal of the field in the record or tuple that is to be accessed.
      • Fields inherited from class net.hydromatic.morel.ast.AstNode

        op, pos
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordSelector​(Pos pos, java.lang.String name)
      Creates a record selector.
    • Field Detail

      • name

        public final java.lang.String name
      • slot

        public int slot
        Set during validation, after the type of the argument has been deduced, contains the ordinal of the field in the record or tuple that is to be accessed.

        A mutable field, it is not strictly a parse tree property, but just convenient storage for a value needed by the compiler. Use with care.

    • Constructor Detail

      • RecordSelector

        RecordSelector​(Pos pos,
                       java.lang.String name)
        Creates a record selector.