How to use the vscode-languageserver-types.SymbolKind.Class function in vscode-languageserver-types

To help you get started, we’ve selected a few vscode-languageserver-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / kibana / x-pack / plugins / code / public / components / symbol_tree / __test__ / __fixtures__ / props.ts View on Github external
path: '"stack-control"/EventEmitter',
        },
        {
          name: 'ClrStackView',
          kind: SymbolKind.Variable,
          location: {
            uri:
              'git://github.com/vmware/clarity/blob/master/src/clr-angular/data/stack-view/stack-control.ts',
            range: { start: { line: 10, character: 9 }, end: { line: 10, character: 21 } },
          },
          containerName: '"stack-control"',
          path: '"stack-control"/ClrStackView',
        },
        {
          name: 'StackControl',
          kind: SymbolKind.Class,
          location: {
            uri:
              'git://github.com/vmware/clarity/blob/master/src/clr-angular/data/stack-view/stack-control.ts',
            range: { start: { line: 12, character: 0 }, end: { line: 26, character: 1 } },
          },
          containerName: '"stack-control"',
          path: '"stack-control"/StackControl',
          members: [
            {
              name: 'model',
              kind: SymbolKind.Property,
              location: {
                uri:
                  'git://github.com/vmware/clarity/blob/master/src/clr-angular/data/stack-view/stack-control.ts',
                range: { start: { line: 13, character: 2 }, end: { line: 13, character: 13 } },
              },
github elastic / kibana / x-pack / plugins / code / public / components / symbol_tree / __test__ / __fixtures__ / props.ts View on Github external
path: '"stack-control"/StackControl/modelChange',
            },
            {
              name: 'stackView',
              kind: SymbolKind.Property,
              location: {
                uri:
                  'git://github.com/vmware/clarity/blob/master/src/clr-angular/data/stack-view/stack-control.ts',
                range: { start: { line: 16, character: 14 }, end: { line: 16, character: 47 } },
              },
              containerName: 'StackControl',
              path: '"stack-control"/StackControl/stackView',
            },
            {
              name: 'HashMap',
              kind: SymbolKind.Class,
              location: {
                uri:
                  'git://github.com/elastic/openjdkMirror/blob/master/jdk/src/share/classes/java/util/HashMap.java',
                range: { start: { line: 136, character: 13 }, end: { line: 136, character: 20 } },
              },
              containerName: 'HashMap.java',
              path: 'HashMap',
              members: [
                {
                  name: 'serialVersionUID',
                  kind: SymbolKind.Field,
                  location: {
                    uri:
                      'git://github.com/elastic/openjdkMirror/blob/master/jdk/src/share/classes/java/util/HashMap.java',
                    range: {
                      start: { line: 139, character: 30 },
github elastic / kibana / x-pack / legacy / plugins / code / public / components / symbol_tree / __test__ / __fixtures__ / props.ts View on Github external
name: 'EventEmitter',
          kind: SymbolKind.Variable,
          range: { start: { line: 9, character: 9 }, end: { line: 9, character: 21 } },
          selectionRange: { start: { line: 9, character: 9 }, end: { line: 9, character: 21 } },
          path: '"stack-control"/EventEmitter',
        },
        {
          name: 'ClrStackView',
          kind: SymbolKind.Variable,
          range: { start: { line: 10, character: 9 }, end: { line: 10, character: 21 } },
          selectionRange: { start: { line: 10, character: 9 }, end: { line: 10, character: 21 } },
          path: '"stack-control"/ClrStackView',
        },
        {
          name: 'StackControl',
          kind: SymbolKind.Class,
          range: { start: { line: 12, character: 0 }, end: { line: 26, character: 1 } },
          selectionRange: { start: { line: 12, character: 0 }, end: { line: 26, character: 1 } },
          path: '"stack-control"/StackControl',
          members: [
            {
              name: 'model',
              kind: SymbolKind.Property,
              range: { start: { line: 13, character: 2 }, end: { line: 13, character: 13 } },
              selectionRange: {
                start: { line: 13, character: 2 },
                end: { line: 13, character: 13 },
              },
              path: '"stack-control"/StackControl/model',
            },
            {
              name: 'modelChange',
github vuejs / vetur / server / src / modes / script / javascript.ts View on Github external
function convertSymbolKind(kind: ts.ScriptElementKind): SymbolKind {
  switch (kind) {
    case 'var':
    case 'local var':
    case 'const':
      return SymbolKind.Variable;
    case 'function':
    case 'local function':
      return SymbolKind.Function;
    case 'enum':
      return SymbolKind.Enum;
    case 'module':
      return SymbolKind.Module;
    case 'class':
      return SymbolKind.Class;
    case 'interface':
      return SymbolKind.Interface;
    case 'method':
      return SymbolKind.Method;
    case 'property':
    case 'getter':
    case 'setter':
      return SymbolKind.Property;
  }
  return SymbolKind.Variable;
}
github recca0120 / vscode-phpunit / server / src / providers / document-symbol-provider.ts View on Github external
return nodes.map((node: any) => {
            return SymbolInformation.create(
                node.name.replace(/.*\\/g, ''),
                node.class === node.name ? SymbolKind.Class : SymbolKind.Method,
                node.range,
                uri
            );
        });
    }
github isundaylee / atom-ide-ccls / lib / main.js View on Github external
markerOptionsForSymbol = (symbol) => {
  var options = {
    type: "text",
    class: "ccls--disabled"
  };

  switch (symbol.kind) {
    case SymbolKind.Class:
    case SymbolKind.Struct:
    case SymbolKind.Constructor:
      options.class = 'ccls--type';
      break;
    case SymbolKind.Enum:
      options.class = 'ccls--enum';
      break;
    case CustomSymbolKind.TypeAlias:
      options.class = 'ccls--type-alias';
      break;
    case SymbolKind.TypeParameter:
      options.class = 'ccls--type-parameter';
      break;
    case SymbolKind.Function:
      options.class = 'ccls--free-function';
      break;
github neoclide / coc-html / server / modes / javascriptMode.ts View on Github external
function convertSymbolKind(kind: string): SymbolKind {
	switch (kind) {
		case 'var':
		case 'local var':
		case 'const':
			return SymbolKind.Variable;
		case 'function':
		case 'local function':
			return SymbolKind.Function;
		case 'enum':
			return SymbolKind.Enum;
		case 'module':
			return SymbolKind.Module;
		case 'class':
			return SymbolKind.Class;
		case 'interface':
			return SymbolKind.Interface;
		case 'method':
			return SymbolKind.Method;
		case 'property':
		case 'getter':
		case 'setter':
			return SymbolKind.Property;
	}
	return SymbolKind.Variable;
}
github forcedotcom / salesforcedx-vscode / packages / salesforcedx-visualforce-language-server / src / modes / javascriptMode.ts View on Github external
function convertSymbolKind(kind: string): SymbolKind {
  switch (kind) {
    case 'var':
    case 'local var':
    case 'const':
      return SymbolKind.Variable;
    case 'function':
    case 'local function':
      return SymbolKind.Function;
    case 'enum':
      return SymbolKind.Enum;
    case 'module':
      return SymbolKind.Module;
    case 'class':
      return SymbolKind.Class;
    case 'interface':
      return SymbolKind.Interface;
    case 'method':
      return SymbolKind.Method;
    case 'property':
    case 'getter':
    case 'setter':
      return SymbolKind.Property;
  }
  return SymbolKind.Variable;
}