@krassowski/jupyterlab_go_to_definition
Version:
Jump to definition of a variable or function in JupyterLab
18 lines • 568 B
JavaScript
import { PythonAnalyzer } from './python';
import { RAnalyzer } from './r';
export function chooseLanguageAnalyzer(language) {
switch (language) {
case 'python': {
return PythonAnalyzer;
}
case 'R': {
return RAnalyzer;
}
default: {
console.warn(language + ' is not supported yet by go-to-definition extension.');
// once there is C language support, it might be used as a default instead
return PythonAnalyzer;
}
}
}
//# sourceMappingURL=chooser.js.map