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); } }
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(); }
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); }
/// <summary> /// Visit each StaticVarDecl in static variable list. /// </summary> /// <param name="x"></param> virtual public void VisitStaticStmt(StaticStmt x) { VisitList(x.StVarList); }
public override void VisitStaticStmt(StaticStmt x) { Add(x); }
public override void VisitStaticStmt(StaticStmt x) { base.VisitStaticStmt(x); }