protected internal virtual void VisitDirective(Directive node) { this.VisitNonterminalNode(node); }
public static void CreateReturnsParameterDirectiveGivenParameterDirectiveName() { var directive = Directive.Create(new DirectiveBlockStart(0), new DirectiveName(4, "Parameter"), new Attribute[0], new BlockEnd(0)); Assert.Equal(typeof(ParameterDirective), directive.GetType()); }
public static void CreateReturnsCustomDirectiveGivenUnrecognizedDirectiveName() { var directive = Directive.Create(new DirectiveBlockStart(0), new DirectiveName(4, "custom"), new Attribute[0], new BlockEnd(0)); Assert.Equal(typeof(CustomDirective), directive.GetType()); }
public static void CreateReturnsIncludeDirectiveGivenIncludeDirectiveName() { var directive = Directive.Create(new DirectiveBlockStart(0), new DirectiveName(4, "Include"), new Attribute[0], new BlockEnd(0)); Assert.Equal(typeof(IncludeDirective), directive.GetType()); }
protected internal override void VisitDirective(Directive node) { this.currentDirective = node; base.VisitDirective(node); }