Skip to content

Require CanonSourceFile in new_with_dep signatures #311

@LesterEvSe

Description

@LesterEvSe

Currently, the new_with_dep methods inside the CompiledProgram and TemplateProgram structs accept a standard SourceFile. However, the very first operation performed inside DependencyGraph::new is converting this SourceFile into a CanonSourceFile, which will fail if the user passes SourceFile::anonymous.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions