MCPcopy Create free account
hub / github.com/TeXworks/texworks / canHandleFile

Method canHandleFile

src/scripting/ECMAScriptInterface.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool ECMAScriptInterface::canHandleFile(const QFileInfo& fileInfo) const
34{
35 if (fileInfo.suffix() != QStringLiteral("es") && fileInfo.suffix() != QStringLiteral("js")) {
36 return false;
37 }
38 return true;
39}
40
41} // namespace Scripting
42} // namespace Tw

Callers 1

foreachFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected