Class IRDirective

java.lang.Object
org.ek9lang.compiler.directives.ResolutionDirective
org.ek9lang.compiler.directives.IRDirective
All Implemented Interfaces:
Directive

public class IRDirective extends ResolutionDirective
To be used in EK9 source code to check that the IR generated matches what is expected.

Note use the 'back ticks' for the string as the IR is very likely to have double quotes used within it.

  @IR: IR_GENERATION: TYPE: "Example": `ConstructDfn: introduction::Example ...`
  @IR: IR_GENERATION: FUNCTION: "TestFunction": `ConstructDfn: introduction::TestFunction ...`
 
  • Constructor Details

    • IRDirective

      public IRDirective(DirectiveSpec spec)
      New directive checker for implements.
  • Method Details

    • type

      public DirectiveType type()
      Description copied from interface: Directive
      What s the type of the directive.