Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

70 - References rust crate from AST #82

Open
wants to merge 27 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8cb207e
chore: create branch chore/70-references-rust-crate-from-ast-staging
Aug 17, 2023
afd8ef1
chore: create branch chore/70-references-rust-crate-from-ast/71-creat…
Aug 17, 2023
e187320
feat(libs/ast-references): added first version of the references stru…
0xmemorygrinder Aug 30, 2023
91d3c53
refactor(libs/ast-references): remove useless file and boilerplate code
0xmemorygrinder Sep 1, 2023
2e2f071
feat(libs/ast-references): added error and event structs
0xmemorygrinder Sep 2, 2023
5899910
feat(libs/ast-references): added function type
0xmemorygrinder Sep 2, 2023
62ba8d1
feat(libs/ast-references): property type is now a comprehensive enum
0xmemorygrinder Sep 2, 2023
d18b07e
refactor(libs/ast-references): renamed PropertyReference to VariableR…
0xmemorygrinder Sep 2, 2023
960f367
feat(libs/ast-references): add function to retrieve FileReference fro…
ByFishh Sep 18, 2023
6a1cc78
feat(libs/ast-references): add current contract into StructReference
ByFishh Sep 19, 2023
5ef1ae8
feat: add visitor item enum
Leon-azerty Sep 19, 2023
a2b65a6
feat: add visit item event
Leon-azerty Sep 19, 2023
4b81f07
feat: add visit item error
Leon-azerty Sep 19, 2023
8bf54e1
feat(libs/ast-reference): fix references location
ByFishh Sep 19, 2023
cf320ff
feat(libs/ast-references): add visit item function
ByFishh Sep 19, 2023
71edeea
feat(libs/ast-references): add visit variable definition
ByFishh Sep 19, 2023
5f11acf
feat: add enum vec in contract reference
Leon-azerty Sep 19, 2023
f4ef223
Revert "feat: add enum vec in contract reference"
Leon-azerty Sep 19, 2023
7fe1259
feat(libs/ast-references): add properties to contract
ByFishh Sep 19, 2023
d6c02d6
feat: add visit item error
Leon-azerty Sep 19, 2023
b194858
add test for item variable
Leon-azerty Sep 19, 2023
27a5312
test: add sol files for test
Leon-azerty Sep 19, 2023
4fcc69a
test: add tests
Leon-azerty Sep 19, 2023
fbfd06b
fix: 3 tests
Leon-azerty Sep 20, 2023
eaa9954
test: add sol file for test
Leon-azerty Sep 20, 2023
7852951
feat(libs/ast-references): remove wrong assert in test
ByFishh Sep 20, 2023
7532300
fix(libs/ast-references): fixed compilztion error and made tests pass
0xmemorygrinder Oct 3, 2023
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
10 changes: 10 additions & 0 deletions libs/ast-references/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
95 changes: 95 additions & 0 deletions libs/ast-references/Cargo.lock

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

10 changes: 10 additions & 0 deletions libs/ast-references/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "ast-references"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
proc-macro2 = { version = "1.0.66", features = ["span-locations"]}
ast-extractor = { path = "../ast-extractor"}
Loading