MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / SetLexerModule

Method SetLexerModule

scintilla/src/ScintillaBase.cxx:535–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void LexState::SetLexerModule(const LexerModule *lex) {
536 if (lex != lexCurrent) {
537 if (instance) {
538 instance->Release();
539 instance = 0;
540 }
541 interfaceVersion = lvOriginal;
542 lexCurrent = lex;
543 if (lexCurrent) {
544 instance = lexCurrent->Create();
545 interfaceVersion = instance->Version();
546 }
547 pdoc->LexerChanged();
548 }
549}
550
551void LexState::SetLexer(uptr_t wParam) {
552 lexLanguage = wParam;

Callers

nothing calls this directly

Calls 4

LexerChangedMethod · 0.80
ReleaseMethod · 0.45
CreateMethod · 0.45
VersionMethod · 0.45

Tested by

no test coverage detected