pathOfSnapshot method

String pathOfSnapshot(
  1. Executable executable
)

The location of the snapshot of the dart program at path in package will be stored here.

We use the sdk version to make sure we don't run snapshots from a different sdk.

path must be relative.

Implementation

String pathOfSnapshot(Executable executable) {
  return isCachedGlobal
      ? executable.pathOfGlobalSnapshot(workspaceRoot.dir)
      : executable.pathOfSnapshot(workspaceRoot.dir);
}