polystat / odin

Object Dependency Inspector
10 stars 2 forks source link

Support for imports #72

Open Leosimetti opened 2 years ago

Leosimetti commented 2 years ago

This PR introduces a new interface with support for imports (analyzeSourceCodeDir) for analyzing multiple files.

Import Definition

In EO, imports refer to the following constructs at the top of the file: +alias bndAlias pkgName.bndSrc Each import consists of three parts:

  1. Optional alias - bndAlias (binding name can be changed when its imported);
  2. Optional package name - pkgName (packageless objects are stored are a part of the global package with no name);
  3. Path to the imported binding -bndSrc (can be either a top-level object or a path to some nested binding).

Supported Functionality

The following import functionality is currently supported:

Unsupported Features

The following is NOT supported: