Changeset 14019


Ignore:
Timestamp:
Nov 12, 2019 8:50:59 AM (3 weeks ago)
Author:
tgutzmann
Message:

#5874 co-variant return type for SrcBaseNode.root(). Fixed a few typos on the side and improved use of abstract/final.

Location:
trunk/Compiler
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/ModelicaCompiler/module.options

    r14004 r14019  
    467467BOOLEAN mathematical_domain_checks compiler uncommon true
    468468
    469 "If enabled, all mathematical operators will be checked for its correct domain
    470 and provide log messages when an operator is evaluated outside its correct
    471 domain."
    472 
    473 ********************************************************************************
     469"If enabled, all mathematical operators will be checked for their correct
     470domains and provide log messages when an operator is evaluated outside its
     471correct domain."
     472
     473********************************************************************************
  • trunk/Compiler/ModelicaCompiler/src/jastadd/ModelicaCompiler.jrag

    r14002 r14019  
    25032503   
    25042504    public abstract static class TemplateContributor {
    2505         public void addTemplates(Templates templates, OptionRegistry options) { }
     2505        public abstract void addTemplates(Templates templates, OptionRegistry options);
    25062506    }
    25072507
  • trunk/Compiler/ModelicaFrontEnd/src/jastadd/source/SimpleLookup.jrag

    r13675 r14019  
    471471        duringFindClassDeclRevisits--;
    472472        return res;
    473     }
     473    }
    474474    eq SrcLibClassDecl.simpleLookupMemberScope(String name) {
    475475        if (duringFindClassDeclRevisits > MAX_FIND_CLASS_DECL_REVISITS) {
     
    607607    /**
    608608     * Convenience method for looking up a class in the given list of SrcLibNodes.
    609      * Has to be an simple (unqualified) classname.
    610      * This method returns null when the class isn't found.
     609     * Has to be a simple (unqualified) classname.
     610     * This method returns unknownAccess() when the class is not found.
    611611     */
    612612    public ResolvedAccess ASTNode.simpleLookupInLibNodeList(List<SrcLibNode> list, String name) {
  • trunk/Compiler/ModelicaFrontEnd/src/jastadd/source/SourceTraversal.jrag

    r13532 r14019  
    9090    syn Iterable<SrcComponentDecl> SrcEnumClassDecl.componentsIterable() = super.components();
    9191    syn SrcEnumClassDecl SrcEnumClassDecl.enumBase() =
    92         root().asSourceRoot().getProgram().getEnumBaseDecl();
     92        root().getProgram().getEnumBaseDecl();
    9393   
    9494    syn Iterable<SrcModificationOrRedeclareElement> SrcClassDecl.elementModifications();
  • trunk/Compiler/ModelicaFrontEnd/src/jastadd/util/Util.jrag

    r13948 r14019  
    7272    public boolean Root.hasRoot()    { return true; }
    7373
     74    @Override
     75    public SourceRoot SrcBaseNode.root() {
     76        return super.root().asSourceRoot();
     77    }
    7478}
    7579
  • trunk/Compiler/ModelicaFrontEnd/src/java/org/jmodelica/common/ast/prefixes/CausalityConnectorPrefix.java

    r13456 r14019  
    1212    INSTREAM("inStream");
    1313   
    14     private String toString;
     14    private final String toString;
    1515   
    1616    private CausalityConnectorPrefix(String toString) {
Note: See TracChangeset for help on using the changeset viewer.