Exemplo n.º 1
0
 override public void VisitGlobalConstantDecl(GlobalConstantDecl x)
 {
     _serializer.StartSerialize(typeof(GlobalConstantDecl).Name, SerializeSpan(x.Span),
                                new NodeObj("NameIsConditional", x.IsConditional.ToString()), new NodeObj("Name", x.Name.Name.Value));
     SerializePHPDoc(x.PHPDoc);
     VisitElement(x.Initializer);
     _serializer.EndSerialize();
 }
Exemplo n.º 2
0
            public override void VisitGlobalConstantDecl(GlobalConstantDecl x)
            {
                VisitSpecificElementProlog();

                SerializeToken(nameof(x.Name), x.Name.ToString(), x.Name.Span);
                SerializeToken(nameof(x.IsConditional), x.IsConditional.ToString(), null);

                base.VisitGlobalConstantDecl(x);
            }
Exemplo n.º 3
0
 public sealed override void VisitGlobalConstantDecl(GlobalConstantDecl x)
 {
     VisitConstantDecl(x);
 }
Exemplo n.º 4
0
 virtual public void VisitGlobalConstantDecl(GlobalConstantDecl x)
 {
     VisitElement(x.Initializer);
 }
        public override void VisitGlobalConstantDecl(GlobalConstantDecl x)
        {
            var bound = _binder.BindGlobalConstantDecl(x);

            _current.Add(bound);
        }
Exemplo n.º 6
0
 void IReductionsSink.GlobalConstantDeclarationReduced(Parser /*!*/ parser, GlobalConstantDecl /*!*/ decl)
 {
     this.constantCount++;
 }
Exemplo n.º 7
0
 void IReductionsSink.GlobalConstantDeclarationReduced(Parser /*!*/ parser, GlobalConstantDecl /*!*/ decl)
 {
 }
Exemplo n.º 8
0
        /// <inheritdoc />
        public override void VisitGlobalConstantDecl(GlobalConstantDecl x)
        {
            var constantValue = CreateRValue(x.Initializer);

            Result(new ConstantDeclPoint(x, constantValue));
        }
Exemplo n.º 9
0
 public static GlobalConstant GetGlobalConstant(this GlobalConstantDecl /*!*/ node)
 {
     return(node.NodeCompiler <IGlobalConstantDeclCompiler>().GlobalConstant);
 }
Exemplo n.º 10
0
 public override void VisitGlobalConstantDecl(GlobalConstantDecl x)
 {
     // Force traversing
     VisitElement(x.Initializer);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Inspects a global constant declaration even during parsing
 /// </summary>
 /// <param name="parser">Parser currently analyzing the source code</param>
 /// <param name="decl">Current global constant declaration</param>
 public void GlobalConstantDeclarationReduced(Parser /*!*/ parser, GlobalConstantDecl /*!*/ decl)
 {
     compilationUnit.GlobalConstantDeclarationReduced(parser, decl);
 }