Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 } },
},
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 },
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',
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;
}
return nodes.map((node: any) => {
return SymbolInformation.create(
node.name.replace(/.*\\/g, ''),
node.class === node.name ? SymbolKind.Class : SymbolKind.Method,
node.range,
uri
);
});
}
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;
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;
}
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;
}