lsif-protocol
Advanced tools
Comparing version 0.6.0-next.4 to 0.6.0-next.5
@@ -69,8 +69,9 @@ import * as lsp from 'vscode-languageserver-protocol'; | ||
*/ | ||
export interface Element { | ||
export interface GraphElement { | ||
id: Id; | ||
type: ElementTypes; | ||
} | ||
export declare namespace Element { | ||
const descriptor: ObjectDescriptor<Element>; | ||
export declare type Element = Vertex | Edge; | ||
export declare namespace GraphElement { | ||
const descriptor: ObjectDescriptor<GraphElement>; | ||
function is(value: any): value is Element; | ||
@@ -113,3 +114,3 @@ function getDescriptor(element: Element): VertexDescriptor<V> | EdgeDescriptor<E<V, V, EdgeLabels>>; | ||
export declare type Uri = string; | ||
export interface V extends Element { | ||
export interface V extends GraphElement { | ||
type: ElementTypes.vertex; | ||
@@ -892,3 +893,3 @@ label: VertexLabels; | ||
*/ | ||
export interface E11<S extends V, T extends V, K extends EdgeLabels> extends Element { | ||
export interface E11<S extends V, T extends V, K extends EdgeLabels> extends GraphElement { | ||
__brand?: [S, T]; | ||
@@ -910,3 +911,3 @@ id: Id; | ||
} | ||
export interface E1N<S extends V, T extends V, K extends EdgeLabels> extends Element { | ||
export interface E1N<S extends V, T extends V, K extends EdgeLabels> extends GraphElement { | ||
__brand?: [S, T]; | ||
@@ -913,0 +914,0 @@ id: Id; |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EdgeLabels = exports.Vertex = exports.HoverResult = exports.ImplementationResult = exports.ReferenceResult = exports.TypeDefinitionResult = exports.DefinitionResult = exports.DeclarationResult = exports.DocumentLinkResult = exports.FoldingRangeResult = exports.DiagnosticResult = exports.DocumentSymbolResult = exports.RangeBasedDocumentSymbol = exports.PackageInformation = exports.Moniker = exports.UniquenessLevel = exports.MonikerKind = exports.Document = exports.Project = exports.Capabilities = exports.Source = exports.RepositoryInfo = exports.MetaData = exports.ToolState = exports.ToolInfo = exports.Location = exports.ReferenceRange = exports.DeclarationRange = exports.DefinitionRange = exports.Range = exports.RangeTag = exports.UnknownTag = exports.ReferenceTag = exports.DefinitionTag = exports.DeclarationTag = exports.RangeTagTypes = exports.ResultSet = exports.MonikerAttachEvent = exports.DocumentEvent = exports.ProjectEvent = exports.Event = exports.EventScope = exports.EventKind = exports.V = exports.VertexDescriptor = exports.VertexLabels = exports.Element = exports.ElementTypes = exports.Id = exports.uinteger = void 0; | ||
exports.EdgeLabels = exports.Vertex = exports.HoverResult = exports.ImplementationResult = exports.ReferenceResult = exports.TypeDefinitionResult = exports.DefinitionResult = exports.DeclarationResult = exports.DocumentLinkResult = exports.FoldingRangeResult = exports.DiagnosticResult = exports.DocumentSymbolResult = exports.RangeBasedDocumentSymbol = exports.PackageInformation = exports.Moniker = exports.UniquenessLevel = exports.MonikerKind = exports.Document = exports.Project = exports.Capabilities = exports.Source = exports.RepositoryInfo = exports.MetaData = exports.ToolState = exports.ToolInfo = exports.Location = exports.ReferenceRange = exports.DeclarationRange = exports.DefinitionRange = exports.Range = exports.RangeTag = exports.UnknownTag = exports.ReferenceTag = exports.DefinitionTag = exports.DeclarationTag = exports.RangeTagTypes = exports.ResultSet = exports.MonikerAttachEvent = exports.DocumentEvent = exports.ProjectEvent = exports.Event = exports.EventScope = exports.EventKind = exports.V = exports.VertexDescriptor = exports.VertexLabels = exports.GraphElement = exports.ElementTypes = exports.Id = exports.uinteger = void 0; | ||
exports.Edge = exports.textDocument_implementation = exports.textDocument_references = exports.textDocument_hover = exports.textDocument_typeDefinition = exports.textDocument_definition = exports.textDocument_declaration = exports.textDocument_diagnostic = exports.textDocument_documentLink = exports.textDocument_foldingRange = exports.textDocument_documentSymbol = exports.packageInformation = exports.attach = exports.moniker = exports.item = exports.next = exports.contains = exports.ItemEdgeProperties = exports.E1N = exports.E11 = exports.EdgeDescriptor = exports.Cardinality = void 0; | ||
@@ -213,5 +213,5 @@ const lsp = require("vscode-languageserver-protocol"); | ||
})(ElementTypes = exports.ElementTypes || (exports.ElementTypes = {})); | ||
var Element; | ||
(function (Element) { | ||
Element.descriptor = new ObjectDescriptor({ | ||
var GraphElement; | ||
(function (GraphElement) { | ||
GraphElement.descriptor = new ObjectDescriptor({ | ||
id: Id.property(), | ||
@@ -221,5 +221,5 @@ type: ElementTypes.property() | ||
function is(value) { | ||
return Element.descriptor.validate(value); | ||
return GraphElement.descriptor.validate(value); | ||
} | ||
Element.is = is; | ||
GraphElement.is = is; | ||
function getDescriptor(element) { | ||
@@ -233,4 +233,4 @@ switch (element.type) { | ||
} | ||
Element.getDescriptor = getDescriptor; | ||
})(Element = exports.Element || (exports.Element = {})); | ||
GraphElement.getDescriptor = getDescriptor; | ||
})(GraphElement = exports.GraphElement || (exports.GraphElement = {})); | ||
/** | ||
@@ -293,3 +293,3 @@ * All know vertices label values. | ||
(function (V) { | ||
V.descriptor = new VertexDescriptor(Object.assign({}, Element.descriptor.description, { | ||
V.descriptor = new VertexDescriptor(Object.assign({}, GraphElement.descriptor.description, { | ||
type: new Property(value => value === ElementTypes.vertex), | ||
@@ -296,0 +296,0 @@ label: VertexLabels.property() |
{ | ||
"name": "lsif-protocol", | ||
"description": "Typescript implementation of the LSIF protocol", | ||
"version": "0.6.0-next.4", | ||
"version": "0.6.0-next.5", | ||
"author": "Microsoft Corporation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97508
2428