Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade slang version to 0.16.0 #588

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 85 additions & 85 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"yaml": "^2.2.1"
},
"dependencies": {
"@nomicfoundation/slang": "0.15.1",
"@nomicfoundation/slang": "0.16.0",
"@nomicfoundation/solidity-analyzer": "0.1.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ConstantDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ConstantDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ConstructorDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ConstructorDefinition
...
@identifier [ConstructorKeyword]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ContractDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ContractDefinition
...
@identifier name: [_]
...
]
`);
}
2 changes: 0 additions & 2 deletions server/src/services/documentSymbol/finders/EnumDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class EnumDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [EnumDefinition
...
@identifier name: [_]
...
]
`);
}
2 changes: 0 additions & 2 deletions server/src/services/documentSymbol/finders/ErrorDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ErrorDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ErrorDefinition
...
@identifier name: [_]
...
]
`);
}
2 changes: 0 additions & 2 deletions server/src/services/documentSymbol/finders/EventDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class EventDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [EventDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class FallbackFunctionDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [FallbackFunctionDefinition
...
@identifier [FallbackKeyword]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ export class FunctionDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [FunctionDefinition
...
[FunctionName
...
@identifier variant: [_]
...
]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class InterfaceDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [InterfaceDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class LibraryDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [LibraryDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ModifierDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ModifierDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ReceiveFunctionDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [ReceiveFunctionDefinition
...
@identifier [ReceiveKeyword]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class StateVariableDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [StateVariableDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class StructDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [StructDefinition
...
@identifier name: [_]
...
]
`);
}
2 changes: 0 additions & 2 deletions server/src/services/documentSymbol/finders/StructMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class StructMember extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [StructMember
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class UnnamedFunctionDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [UnnamedFunctionDefinition
...
@identifier [FunctionKeyword]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class UserDefinedValueTypeDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [UserDefinedValueTypeDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class VariableDeclarationStatement extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [VariableDeclarationStatement
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class YulFunctionDefinition extends SymbolFinder {

public override readonly query = Query.parse(`
@definition [YulFunctionDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export class ContractDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[ContractDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ export class CustomTypeHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[TypeName
...
[IdentifierPath
...
@identifier [Identifier]
...
]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class EnumDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[EnumDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class ErrorDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[ErrorDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export class EventDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[EventDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ export class EventEmissionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[EmitStatement
...
[IdentifierPath
...
@identifier [Identifier]
...
]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ export class FunctionCallHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[FunctionCallExpression
...
[Expression
...
@identifier [Identifier]
...
]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ export class FunctionDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[FunctionDefinition
...
[FunctionName
...
@identifier [Identifier]
...
]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export class InterfaceDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[InterfaceDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class LibraryDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[LibraryDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export class StructDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[StructDefinition
...
@identifier name: [_]
...
]
`);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class UserDefinedValueTypeDefinitionHighlighter extends Highlighter {

public override readonly query = Query.parse(`
[UserDefinedValueTypeDefinition
...
@identifier name: [_]
...
]
`);
}
Loading