Esempio n. 1
0
 public override void VisitStaticStmt(StaticStmt x)
 {
     foreach (var st in x.StVarList)
     {
         VisitElement(st.Initializer);
         Debug.Assert(st.Variable.IsMemberOf == null);
         AddVar(st.Variable.VarName, st.Span, VariableKind.StaticVariable, st.Initializer);
     }
 }
Esempio n. 2
0
 override public void VisitStaticStmt(StaticStmt x)
 {
     _serializer.StartSerialize(typeof(StaticStmt).Name, SerializeSpan(x.Span));
     foreach (StaticVarDecl v in x.StVarList)
     {
         _serializer.StartSerialize(typeof(StaticVarDecl).Name, SerializeSpan(x.Span), new NodeObj("Name", v.Variable.Value));
         VisitElement(v.Initializer);
         _serializer.EndSerialize();
     }
     _serializer.EndSerialize();
 }
Esempio n. 3
0
 public override void VisitStaticStmt(StaticStmt x)
 {
     ConsumeToken(Tokens.T_STATIC, "static", x.Span.Start);
     VisitElementList(x.StVarList, Tokens.T_COMMA, ",");
     ConsumeToken(Tokens.T_SEMI, ";", x.Span.End - 1);
 }
Esempio n. 4
0
 /// <summary>
 /// Visit each StaticVarDecl in static variable list.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitStaticStmt(StaticStmt x)
 {
     VisitList(x.StVarList);
 }
Esempio n. 5
0
 public override void VisitStaticStmt(StaticStmt x)
 {
     Add(x);
 }
Esempio n. 6
0
 public override void VisitStaticStmt(StaticStmt x)
 {
     base.VisitStaticStmt(x);
 }