public LexerDFA Minimize() { var minResult = Dfa.Minimize(StatesEquivalent, Combine); var modeMap = ModeMap.ToDictionary(e => e.Key, e => minResult.Item1[e.Value]); return(new LexerDFA(LexerSpec, modeMap, EquivalenceClasses, minResult.Item2)); }
protected ModeMapTest() { _vimBuffer = CreateVimBuffer(); _modeMap = ((VimBuffer)_vimBuffer).ModeMap; }
public ModeMapTest() { _vimBuffer = CreateVimBuffer(); _modeMap = ((VimBuffer)_vimBuffer).ModeMap; _modeMap.Reset((new UninitializedMode(_vimBuffer.VimTextBuffer))); }