Changeset 13605
- Timestamp:
- Sep 26, 2019 1:32:03 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/dev-tg-5845 (added) merged: 13545-13546,13552
- Property svn:mergeinfo changed
-
trunk/Compiler/ModelicaFlatTree/src/jastadd/ConstantEvaluation/ConstantEvaluation.jrag
r13541 r13605 4989 4989 public class VariableEvaluator { 4990 4990 public static final VariableEvaluator instance = new VariableEvaluator(true); 4991 private boolean externalEvaluationEnabled;4991 private final boolean externalEvaluationEnabled; 4992 4992 4993 4993 public VariableEvaluator(boolean externalEvaluationEnabled) { -
trunk/Compiler/ModelicaFlatTree/src/jastadd/ast/FlatModelica.ast
r13357 r13605 699 699 * LibTopPackagePath is the file path of the package file of the library that this external statement originated from. 700 700 */ 701 FExternalStmt : FStatement ::= FExternalLanguage [ReturnVar:CommonAccessExp] <Name> Arg:FExp* <LibTopPackagePath> ;701 FExternalStmt : FStatement ::= FExternalLanguage [ReturnVar:CommonAccessExp] <Name> Arg:FExp* <LibTopPackagePath> FAttribute*; 702 702 703 703 /** -
trunk/Compiler/ModelicaFrontEnd/src/jastadd/flattening/Flattening.jrag
r13568 r13605 776 776 stmt.setLibTopPackagePath(scd == null ? "" : scd.myLibRootPath().toAbsolutePath().toString()); // scd is null for builtins 777 777 stmt.setFExternalLanguage(hasFExternalLanguage() ? 778 (FExternalLanguage) getFExternalLanguage().fullCopy() :778 getFExternalLanguage().treeCopy() : 779 779 new FCExternalLanguage()); 780 780 stmt.extractLibrary(this); … … 830 830 new Opt<CommonAccessExp>(); 831 831 832 FExternalStmt stmt = new FExternalStmt(getFExternalLanguage().treeCopy(), ret, getName(), args, getLibTopPackagePath() );832 FExternalStmt stmt = new FExternalStmt(getFExternalLanguage().treeCopy(), ret, getName(), args, getLibTopPackagePath(), new List<FAttribute>()); 833 833 stmt.extractLibrary(this); 834 834 sl.add(stmt); … … 3399 3399 /** 3400 3400 * Class used during instantiation of equations and flattening of variables 3401 * to dele cate to different contributors. This class is subtyped for each3402 * contributor !3401 * to delegate to different contributors. This class is subtyped for each 3402 * contributor. 3403 3403 */ 3404 3404 public abstract class AttributeContributor { -
trunk/Compiler/ModelicaFrontEnd/src/jastadd/source/PredefinedTypes.jrag
r12975 r13605 41 41 * Some differences apply however. The types of predefined types must 42 42 * be looked up only amongst the built-in types. Also, there are no 43 * component accesses that need s to be looked uppredefined types.43 * component accesses that need to be looked up for predefined types. 44 44 * The predefined types are defined in the (list) non terminal attribute 45 45 * PredefinedType. -
trunk/Compiler/ModelicaFrontEnd/src/jastadd/util/Annotations.jrag
r13294 r13605 91 91 public class FClass implements FAttributeListAnnotationNode.FAttributeList {} 92 92 public class FAttribute implements FAttributeListAnnotationNode.FAttributeList {} 93 public class FExternalStmt implements FAttributeListAnnotationNode.FAttributeList {} 93 94 94 95 eq FFunctionDecl.annotation(InstContext instContext) = new FAttributeListAnnotationNode(this, instContext); … … 96 97 eq FAbstractEquation.annotation(InstContext instContext) = new FAttributeListAnnotationNode(this, instContext); 97 98 eq FClass.annotation(InstContext instContext) = new FAttributeListAnnotationNode(this, instContext); 99 eq FExternalStmt.annotation(InstContext instContext) = new FAttributeListAnnotationNode(this, instContext); 98 100 99 101 eq InstExternal.annotation() = annotation(annotationExpEvaluator());
Note: See TracChangeset
for help on using the changeset viewer.