MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setSyntaxDefinition

Method setSyntaxDefinition

src/eepp/ui/doc/textdocument.cpp:3092–3098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3090}
3091
3092void TextDocument::setSyntaxDefinition( std::shared_ptr<SyntaxDefinition> definition ) {
3093 {
3094 Lock l( mSyntaxDefinitionMutex );
3095 mSyntaxDefinition = definition;
3096 }
3097 notifySyntaxDefinitionChange();
3098}
3099
3100void TextDocument::setSyntaxDefinition( const SyntaxDefinition& definition ) {
3101 if ( mSyntaxDefinition->getLanguageIndex() != definition.getLanguageIndex() ) {

Callers 2

updateEditorsTextMethod · 0.45
loadFromFileMethod · 0.45

Calls 2

getLanguageIndexMethod · 0.80
getLanguageDefinitionMethod · 0.80

Tested by

no test coverage detected