예제 #1
0
 protected internal virtual void VisitDirective(Directive node)
 {
     this.VisitNonterminalNode(node);
 }
예제 #2
0
        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());
        }
예제 #3
0
        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());
        }
예제 #4
0
        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);
 }