attach_source_dep function

Attach dependencies to source code Attach dependencies to the source code (any input variables are automatically attached)