Skip to content
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
2 changes: 1 addition & 1 deletion antlr
Submodule antlr updated 2 files
+2 −1 Solidity.g4
+25 −0 test.sol
6 changes: 6 additions & 0 deletions src/ASTBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ export class ASTBuilder
isImmutable = true
}

let isTransient = false
if (ctx.TransientKeyword_list().length > 0) {
isTransient = true
}

const decl: AST.StateVariableDeclarationVariable = {
type: 'VariableDeclaration',
typeName: type,
Expand All @@ -120,6 +125,7 @@ export class ASTBuilder
isDeclaredConst,
isIndexed: false,
isImmutable,
isTransient,
override,
storageLocation: null,
}
Expand Down
4 changes: 3 additions & 1 deletion src/antlr/Solidity.interp

Large diffs are not rendered by default.

82 changes: 42 additions & 40 deletions src/antlr/Solidity.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/antlr/SolidityLexer.interp

Large diffs are not rendered by default.

82 changes: 42 additions & 40 deletions src/antlr/SolidityLexer.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading