Git Product home page Git Product logo

dznlint's People

Contributors

perryvw avatar

Watchers

 avatar  avatar

dznlint's Issues

Namespace lookup and merging issues

There is a lookup issue when referencing own namespace:

namespace NS {
    extern Error = $$;

    interface I {
      in void GetError(out NS.Error error);
   }
}

Results in: Cannot find NS.Error

It seems there is also a problem merging namespaces from multiple imports:

import A; //-> namespace NS { extern C $$; }
import B; //-> namespace NS { extern D $$; }

NS.C //--> not found
NS.D //--> only found last one

Results in NS.C not found but NS.D is found.


Some additional test scenarios:

import other.dzn; -> namespace NS { interface B{} }

namespace NS {
component A {
 provides B report;
}
}

and

namespace A {
  extern ET = $$;
}

namespace B {
  interface I {
    out void Foo(A.ET v);
}
}

2.18 shared state lookup causes unknown variables

Looking up state variables on interfaces causes errors ie in a component guard

[api.state.bla] gives an issue because state is defined in the behavior of the interface, which is not considered.

Detect unused ports

If a port has not uses in a component it can provide a warning that it is not used and can be removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.