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

@nomicfoundation/slang

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomicfoundation/slang - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

39

ast/generated/ast_types.d.ts

@@ -804,3 +804,3 @@ import { NonterminalNode, TerminalNode } from "../../cst";

get period(): TerminalNode;
get member(): MemberAccess;
get member(): TerminalNode;
}

@@ -939,3 +939,3 @@ export declare class IndexAccessExpression {

get minusGreaterThan(): TerminalNode;
get variables(): YulReturnVariables;
get variables(): YulVariableNames;
}

@@ -947,3 +947,3 @@ export declare class YulVariableDeclarationStatement {

get letKeyword(): TerminalNode;
get names(): TerminalNode;
get variables(): YulVariableNames;
get value(): YulVariableDeclarationValue | undefined;

@@ -962,6 +962,13 @@ }

constructor(cst: NonterminalNode);
get names(): YulPaths;
get variables(): YulPaths;
get assignment(): YulAssignmentOperator;
get expression(): YulExpression;
}
export declare class YulColonAndEqual {
readonly cst: NonterminalNode;
private readonly fetch;
constructor(cst: NonterminalNode);
get colon(): TerminalNode;
get equal(): TerminalNode;
}
export declare class YulStackAssignmentStatement {

@@ -971,11 +978,11 @@ readonly cst: NonterminalNode;

constructor(cst: NonterminalNode);
get assignment(): YulAssignmentOperator;
get expression(): YulExpression;
get assignment(): YulStackAssignmentOperator;
get variable(): TerminalNode;
}
export declare class YulColonEqual {
export declare class YulEqualAndColon {
readonly cst: NonterminalNode;
private readonly fetch;
constructor(cst: NonterminalNode);
get equal(): TerminalNode;
get colon(): TerminalNode;
get equal(): TerminalNode;
}

@@ -1231,8 +1238,2 @@ export declare class YulIfStatement {

}
export declare class MemberAccess {
readonly cst: NonterminalNode;
private readonly fetch;
constructor(cst: NonterminalNode);
get variant(): TerminalNode;
}
export declare class ArgumentsDeclaration {

@@ -1284,4 +1285,10 @@ readonly cst: NonterminalNode;

constructor(cst: NonterminalNode);
get variant(): YulColonEqual | TerminalNode;
get variant(): YulColonAndEqual | TerminalNode;
}
export declare class YulStackAssignmentOperator {
readonly cst: NonterminalNode;
private readonly fetch;
constructor(cst: NonterminalNode);
get variant(): YulEqualAndColon | TerminalNode;
}
export declare class YulSwitchCase {

@@ -1576,3 +1583,3 @@ readonly cst: NonterminalNode;

}
export declare class YulReturnVariables {
export declare class YulVariableNames {
readonly cst: NonterminalNode;

@@ -1579,0 +1586,0 @@ private readonly fetch;

# changelog
## 0.16.0
### Minor Changes
- [#1030](https://github.com/NomicFoundation/slang/pull/1030) [`7e467ce`](https://github.com/NomicFoundation/slang/commit/7e467ce199cb07acb443da9f542fbcc74f2a5321) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Tree Query Language: queries now ignore trivia nodes.
- [#1030](https://github.com/NomicFoundation/slang/pull/1030) [`7e467ce`](https://github.com/NomicFoundation/slang/commit/7e467ce199cb07acb443da9f542fbcc74f2a5321) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Tree Query Language: remove the ellipsis query `...` operator making it implicit, add an adjacency operator `.`.
### Patch Changes
- [#1015](https://github.com/NomicFoundation/slang/pull/1015) [`369ee30`](https://github.com/NomicFoundation/slang/commit/369ee309325ef57c7cd6f29e2f7adc4f9ec09c88) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust `1.79.0`.
- [#1052](https://github.com/NomicFoundation/slang/pull/1052) [`54c9067`](https://github.com/NomicFoundation/slang/commit/54c9067aa6c587ff93cac6575726a9068a9bb758) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Tree Query Language: Compute row and column information for query parser errors.
- [#1048](https://github.com/NomicFoundation/slang/pull/1048) [`c408caa`](https://github.com/NomicFoundation/slang/commit/c408caae1826095cc2f2c01caf9be58ab5ff8eee) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support Yul multiple variables declaration
- [#1047](https://github.com/NomicFoundation/slang/pull/1047) [`2b32045`](https://github.com/NomicFoundation/slang/commit/2b3204549af27ea3782da2a9a2de470db13a7402) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - inline `MemberAccess` enum into the parent `MemberAccessExpression`
- [#1062](https://github.com/NomicFoundation/slang/pull/1062) [`6b05496`](https://github.com/NomicFoundation/slang/commit/6b05496cbd19b5a7f65033fb223c1bcd3d448738) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix stack assignments operator `=:`.
- [#1052](https://github.com/NomicFoundation/slang/pull/1052) [`54c9067`](https://github.com/NomicFoundation/slang/commit/54c9067aa6c587ff93cac6575726a9068a9bb758) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Tree Query Language: Improve reporting when an error occurs attempting to parse edge labels or node kinds.
- [#1037](https://github.com/NomicFoundation/slang/pull/1037) [`2a74f91`](https://github.com/NomicFoundation/slang/commit/2a74f91ed8e67fc3d315afd49f593dfef52f0e4d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix `ExponentiationExpression` associativity before `0.8.0`
## 0.15.1

@@ -4,0 +28,0 @@

@@ -11,3 +11,3 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand.

export namespace kinds {
export declare namespace kinds {
export enum NonterminalKind {

@@ -106,3 +106,2 @@ ABICoderPragma = "ABICoderPragma",

MappingValue = "MappingValue",
MemberAccess = "MemberAccess",
MemberAccessExpression = "MemberAccessExpression",

@@ -202,5 +201,6 @@ ModifierAttribute = "ModifierAttribute",

YulBuiltInFunction = "YulBuiltInFunction",
YulColonEqual = "YulColonEqual",
YulColonAndEqual = "YulColonAndEqual",
YulContinueStatement = "YulContinueStatement",
YulDefaultCase = "YulDefaultCase",
YulEqualAndColon = "YulEqualAndColon",
YulExpression = "YulExpression",

@@ -219,4 +219,4 @@ YulForStatement = "YulForStatement",

YulPaths = "YulPaths",
YulReturnVariables = "YulReturnVariables",
YulReturnsDeclaration = "YulReturnsDeclaration",
YulStackAssignmentOperator = "YulStackAssignmentOperator",
YulStackAssignmentStatement = "YulStackAssignmentStatement",

@@ -232,2 +232,3 @@ YulStatement = "YulStatement",

YulVariableDeclarationValue = "YulVariableDeclarationValue",
YulVariableNames = "YulVariableNames",
}

@@ -318,3 +319,2 @@ export enum EdgeLabel {

Name = "Name",
Names = "Names",
NewKeyword = "NewKeyword",

@@ -363,2 +363,3 @@ OpenBrace = "OpenBrace",

VarKeyword = "VarKeyword",
Variable = "Variable",
VariableType = "VariableType",

@@ -370,3 +371,4 @@ Variables = "Variables",

export enum TerminalKind {
SKIPPED = "SKIPPED",
UNRECOGNIZED = "UNRECOGNIZED",
MISSING = "MISSING",
AbicoderKeyword = "AbicoderKeyword",

@@ -428,2 +430,3 @@ AbstractKeyword = "AbstractKeyword",

Equal = "Equal",
EqualColon = "EqualColon",
EqualEqual = "EqualEqual",

@@ -742,3 +745,3 @@ EqualGreaterThan = "EqualGreaterThan",

}
export namespace language {
export declare namespace language {
export class Language {

@@ -752,3 +755,3 @@ constructor(version: string);

}
export namespace cst {
export declare namespace cst {
export enum NodeType {

@@ -778,3 +781,3 @@ Nonterminal = "Nonterminal",

}
export namespace cursor {
export declare namespace cursor {
export class Cursor {

@@ -810,3 +813,3 @@ reset(): void;

}
export namespace diagnostic {
export declare namespace diagnostic {
/**

@@ -833,3 +836,3 @@ * Severity of the compiler diagnostic.

}
export namespace parse_error {
export declare namespace parse_error {
export class ParseError {

@@ -841,3 +844,3 @@ severity(): diagnostic.Severity;

}
export namespace parse_output {
export declare namespace parse_output {
export class ParseOutput {

@@ -851,3 +854,3 @@ tree(): cst.Node;

}
export namespace query {
export declare namespace query {
export interface QueryMatch {

@@ -864,3 +867,3 @@ queryNumber: number;

}
export namespace text_index {
export declare namespace text_index {
export interface TextIndex {

@@ -877,3 +880,3 @@ utf8: number;

}
export namespace ast_internal {
export declare namespace ast_internal {
export function selectSequence(node: cst.NonterminalNode): Array<cst.Node | null>;

@@ -880,0 +883,0 @@ export function selectChoice(node: cst.NonterminalNode): cst.Node;

{
"name": "@nomicfoundation/slang",
"version": "0.15.1",
"version": "0.16.0",
"description": "A modular set of compiler APIs empowering the next generation of Solidity code analysis and developer tooling. Written in Rust and distributed in multiple languages.",

@@ -32,14 +32,14 @@ "homepage": "https://nomicfoundation.github.io/slang/",

"devDependencies": {
"@napi-rs/cli": "2.18.3"
"@napi-rs/cli": "2.18.4"
},
"dependencies": {
"@nomicfoundation/slang-darwin-arm64": "0.15.1",
"@nomicfoundation/slang-win32-arm64-msvc": "0.15.1",
"@nomicfoundation/slang-linux-arm64-gnu": "0.15.1",
"@nomicfoundation/slang-linux-arm64-musl": "0.15.1",
"@nomicfoundation/slang-win32-ia32-msvc": "0.15.1",
"@nomicfoundation/slang-darwin-x64": "0.15.1",
"@nomicfoundation/slang-win32-x64-msvc": "0.15.1",
"@nomicfoundation/slang-linux-x64-gnu": "0.15.1",
"@nomicfoundation/slang-linux-x64-musl": "0.15.1"
"@nomicfoundation/slang-darwin-arm64": "0.16.0",
"@nomicfoundation/slang-win32-arm64-msvc": "0.16.0",
"@nomicfoundation/slang-linux-arm64-gnu": "0.16.0",
"@nomicfoundation/slang-linux-arm64-musl": "0.16.0",
"@nomicfoundation/slang-win32-ia32-msvc": "0.16.0",
"@nomicfoundation/slang-darwin-x64": "0.16.0",
"@nomicfoundation/slang-win32-x64-msvc": "0.16.0",
"@nomicfoundation/slang-linux-x64-gnu": "0.16.0",
"@nomicfoundation/slang-linux-x64-musl": "0.16.0"
},

@@ -46,0 +46,0 @@ "napi": {

Sorry, the diff of this file is too big to display

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