Skip to content

Check for duplicate nodes #146

@robrix

Description

@robrix
(x) @x {
  node @x.y
  node @x.y
}

The above is a trivial example of a duplicate node error that we'd catch at runtime, but which we could instead catch statically by a simple analysis approximating the dynamic semantics w.r.t. node assignments. More interesting examples—guarded by interesting patterns, for example—are likely the only ones that we care about in practice (the above doesn't seem to happen very often and is easy enough to discover and resolve when it does), and are pretty much all dependent on exhaustiveness checking (#64).

cf #64 (exhaustiveness checks)

Metadata

Metadata

Assignees

No one assigned

    Labels

    analysisAnalysis (e.g. ahead-of-time error checking) of TSG sources.enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions