public PyClass() { _lines = new StringCollection(); _sections = new PySection[_sec_count]; for (int i=0; i<_sec_count; i++) { _sections[i] = new PySection(); _sections[i].Begin = 1 + i*2; } _cur_begin = -1; _cur_size = -1; _cur_section = PyClassSection.PYDEF_NONE; }
public void BeginSection(PyClassSection section) { // make this section as current; _cur_section = section; _cur_begin = _sections[(int)section].Begin; _cur_size = _sections[(int)section].Size; }
public void EndSection() { // make this section as current; _cur_section = PyClassSection.PYDEF_NONE; _cur_begin = -1; _cur_size = -1; }