Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dot-language-support

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-language-support - npm Package Compare versions

Comparing version 1.3.10 to 1.3.11

16

lib/binder.js

@@ -53,6 +53,6 @@ "use strict";

return bindAssignment(node);
case types_1.SyntaxKind.NormalPointDeclaration:
return bindNormalPointDeclaration(node);
case types_1.SyntaxKind.CompassPointDeclaration:
return bindCompassPointDeclaration(node);
case types_1.SyntaxKind.NormalPortDeclaration:
return bindNormalPortDeclaration(node);
case types_1.SyntaxKind.CompassPortDeclaration:
return bindCompassPortDeclaration(node);
case types_1.SyntaxKind.NodeId:

@@ -167,3 +167,3 @@ return bindNodeId(node);

}
function bindNormalPointDeclaration(node) {
function bindNormalPortDeclaration(node) {
bind(node.colon);

@@ -175,3 +175,3 @@ ensureGlobalSymbol(node.id);

}
function bindCompassPointDeclaration(node) {
function bindCompassPortDeclaration(node) {
bind(node.colon);

@@ -184,4 +184,4 @@ if (node.compassPt)

bind(node.id);
if (node.point)
bind(node.point);
if (node.port)
bind(node.port);
}

@@ -188,0 +188,0 @@ function bindChildren(nodes) {

@@ -50,6 +50,6 @@ import { Scanner } from "./scanner";

private parseNodeId;
private parseCompassPointDeclaration;
private parseNormalPointDeclaration;
private parsePointDeclaration;
private isCompassPoint;
private parseCompassPortDeclaration;
private parseNormalPortDeclaration;
private parsePortDeclaration;
private isCompassPort;
private parseList;

@@ -79,3 +79,3 @@ private getContextParseError;

private isIdentifier;
private isCompassPointKind;
private isCompassPortKind;
private speculationHelper;

@@ -82,0 +82,0 @@ private lookAhead;

@@ -357,10 +357,10 @@ "use strict";

node.id = this.parseIdentifier();
node.point = this.token() === types_1.SyntaxKind.ColonToken
? this.parsePointDeclaration()
node.port = this.token() === types_1.SyntaxKind.ColonToken
? this.parsePortDeclaration()
: undefined;
return this.finishNode(node);
}
parseCompassPointDeclaration() {
parseCompassPortDeclaration() {
console.assert(this.token() === types_1.SyntaxKind.ColonToken);
const node = this.createNode(types_1.SyntaxKind.CompassPointDeclaration);
const node = this.createNode(types_1.SyntaxKind.CompassPortDeclaration);
node.colon = this.parseTokenNode();

@@ -370,19 +370,19 @@ node.compassPt = this.parseTokenNode();

}
parseNormalPointDeclaration() {
parseNormalPortDeclaration() {
console.assert(this.token() === types_1.SyntaxKind.ColonToken);
const node = this.createNode(types_1.SyntaxKind.NormalPointDeclaration);
const node = this.createNode(types_1.SyntaxKind.NormalPortDeclaration);
node.colon = this.parseTokenNode();
node.id = this.parseIdentifier();
node.compassPt = this.token() === types_1.SyntaxKind.ColonToken
? this.parseCompassPointDeclaration()
? this.parseCompassPortDeclaration()
: undefined;
return this.finishNode(node);
}
parsePointDeclaration() {
parsePortDeclaration() {
console.assert(this.token() === types_1.SyntaxKind.ColonToken);
if (this.lookAhead(() => this.isCompassPoint()))
return this.parseCompassPointDeclaration();
return this.parseNormalPointDeclaration();
if (this.lookAhead(() => this.isCompassPort()))
return this.parseCompassPortDeclaration();
return this.parseNormalPortDeclaration();
}
isCompassPoint() {
isCompassPort() {
console.assert(this.token() === types_1.SyntaxKind.ColonToken);

@@ -392,3 +392,3 @@ if (this.token() !== types_1.SyntaxKind.ColonToken)

this.nextToken();
return this.isCompassPointKind(this.token());
return this.isCompassPortKind(this.token());
}

@@ -652,3 +652,3 @@ parseList(context, parseElement, atLeastOne = false) {

}
isCompassPointKind(kind) {
isCompassPortKind(kind) {
return kind >= types_1.SyntaxKind.CompassCenterToken && kind <= types_1.SyntaxKind.CompassEnd;

@@ -655,0 +655,0 @@ }

@@ -96,3 +96,3 @@ export declare const enum ErrorSource {

id: Identifier;
point?: PointDeclaration;
port?: PortDeclaration;
}

@@ -141,15 +141,15 @@ export declare type EdgeSourceOrTarget = NodeId | SubGraph;

export declare type AssignmentSeparator = Token<SyntaxKind.SemicolonToken> | Token<SyntaxKind.CommaToken>;
export declare type PointDeclaration = NormalPointDeclaration | CompassPointDeclaration;
export interface NormalPointDeclaration extends SyntaxNode {
kind: SyntaxKind.NormalPointDeclaration;
export declare type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
export interface NormalPortDeclaration extends SyntaxNode {
kind: SyntaxKind.NormalPortDeclaration;
colon: Token<SyntaxKind.ColonToken>;
id: Identifier;
compassPt?: CompassPointDeclaration;
compassPt?: CompassPortDeclaration;
}
export interface CompassPointDeclaration extends SyntaxNode {
kind: SyntaxKind.CompassPointDeclaration;
export interface CompassPortDeclaration extends SyntaxNode {
kind: SyntaxKind.CompassPortDeclaration;
colon: Token<SyntaxKind.ColonToken>;
compassPt: CompassPoint;
compassPt: CompassPort;
}
export declare type CompassPoint = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export declare type CompassPort = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export declare type EdgeOp = Token<SyntaxKind.DirectedEdgeOp> | Token<SyntaxKind.UndirectedEdgeOp>;

@@ -213,4 +213,4 @@ export interface TextRange {

Assignment = 51,
NormalPointDeclaration = 52,
CompassPointDeclaration = 53,
NormalPortDeclaration = 52,
CompassPortDeclaration = 53,
NodeId = 54,

@@ -217,0 +217,0 @@ Count = 55,

@@ -64,4 +64,4 @@ "use strict";

SyntaxKind[SyntaxKind["Assignment"] = 51] = "Assignment";
SyntaxKind[SyntaxKind["NormalPointDeclaration"] = 52] = "NormalPointDeclaration";
SyntaxKind[SyntaxKind["CompassPointDeclaration"] = 53] = "CompassPointDeclaration";
SyntaxKind[SyntaxKind["NormalPortDeclaration"] = 52] = "NormalPortDeclaration";
SyntaxKind[SyntaxKind["CompassPortDeclaration"] = 53] = "CompassPortDeclaration";
SyntaxKind[SyntaxKind["NodeId"] = 54] = "NodeId";

@@ -68,0 +68,0 @@ SyntaxKind[SyntaxKind["Count"] = 55] = "Count";

@@ -62,11 +62,11 @@ "use strict";

|| visitNode(cbNode, node.terminator);
case types_1.SyntaxKind.NormalPointDeclaration:
case types_1.SyntaxKind.NormalPortDeclaration:
return visitNode(cbNode, node.colon)
|| visitNode(cbNode, node.id)
|| visitNode(cbNode, node.compassPt);
case types_1.SyntaxKind.CompassPointDeclaration:
case types_1.SyntaxKind.CompassPortDeclaration:
return visitNode(cbNode, node.colon)
|| visitNode(cbNode, node.compassPt);
case types_1.SyntaxKind.NodeId:
return visitNode(cbNode, node.point)
return visitNode(cbNode, node.port)
|| visitNode(cbNode, node.id);

@@ -73,0 +73,0 @@ default:

{
"name": "dot-language-support",
"version": "1.3.10",
"version": "1.3.11",
"description": "Parser and language service for graphviz (dot) files",

@@ -5,0 +5,0 @@ "author": "Niklas Mollenhauer",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc