public virtual void VisitAllowStatement(AllowStatement test) { string state = GetState(); if (state == null) throw new MalformedFSMException("Interface Test Allow found outside of state block", test.line); stream.WriteLine("\t\tFSM_INIT_INTERFACEALLOW(" + ClassName + ", " + GetState() + ", " + test.name + ");"); stream.WriteLine(); }
public virtual void VisitAllowStatement(AllowStatement test) { string state = GetState(); if (state == null) throw new MalformedFSMException("Interface Command found outside of state block", test.line); string transName = state + "On" + test.name; stream.WriteLine("\tFSM::InterfaceCommandAllow<" + ClassName + "> " + transName + ";"); stream.WriteLine(); }