Skip to content

R-uFu-s/rv2_frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

rustviz_draft

  • Usage:

    • cd print
    • cargo install --path .
    • cd test-crate
    • touch src/lib.rs
    • cargo print-all-items > ../../output
  • Issues:

    • Our primary goal is to support the basic examples in the rustviz tutorial. However, as there are much more possible syntax that will appear in a snippet of rust code, you might find some of them interesting which haven't been analyzed. Feel free to bring up new issues.

Progress

Event State
Bind(a) Done: rhs is a lit
Copy(a->b) ...
Move(a->b) Done:
In Let and Assign: lhs is a path, rhs is function/path/String::from.
Function call: arguments with ownership
Ongoing: rhs is binary(+-), method call -Chenglin
Todo: function return(cur method: path that can be directly visited)
StaticBorrow(a->b) Done: lhs is a path, rhs &
MutableBorrow(a->b) Done: lhs is a path, rhs &mut
StaticDie(a->b) Done: life time record the last time the variable occur
Todo: ->b who is b?
MutableDie(a->b) ...
PassByStaticReference(a->b) Done: function argument with only read permission required or & or println
PassByMutableReference(a->b) Done: function argument with only write and read permission required or &
GoOutOfScope(a) Done: function ends
Todo: (nested) block
InitRefParam(a) Done: parameter whose type is not reference
In fn visit_param
InitOwnerParam(a) ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.6%
  • Makefile 0.4%