MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _getLanguageRoot

Function _getLanguageRoot

apps/json-format/format-lib.js:875–887  ·  view source on GitHub ↗
(language)

Source from the content-addressed store, hash-verified

873
874 // 获取不同语言的根对象表示
875 let _getLanguageRoot = function(language) {
876 switch (language) {
877 case 'javascript': return '$';
878 case 'php': return '$data';
879 case 'python': return 'data';
880 case 'java': return 'jsonObject';
881 case 'csharp': return 'jsonObject';
882 case 'golang': return 'data';
883 case 'ruby': return 'data';
884 case 'swift': return 'jsonObject';
885 default: return '$';
886 }
887 };
888
889 // 给某个节点增加操作项
890 let _addOptForItem = function (el, show) {

Callers 1

_formatJsonPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected