import { IConvertContext } from "../../IConvertContext" ; import { IConvertSettings } from "../../IConvertSettings" ; import { Util } from "../../Util" ; import { DirectiveNodeHandlerAdapter , IDirectiveContext , IDirectiveNodeHandlerOutput } from "./DirectiveNodeHandlerAdapter" ; /**
 * A handler for include directives.
 */ export class DirectiveNodeHandlerInclude extends DirectiveNodeHandlerAdapter { constructor ( util , settings ) { super ( 'include' , util , settings ) ; } public handle ( directiveContext , convertContext ) { const val = this . getDirectiveConditionalValue ( directiveContext . directive , convertContext ) ; if ( val . termType === 'Literal' && val . value === 'false' ) { return { ignore : true } ; } return { } ; } }