Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ assertj_version = 3.21.0
junit_version = 5.8.2

# Version of published artifacts
version = 7.8.25
version = 7.8.26
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import de.monticore.types.check.SymTypeExpression;
import de.monticore.types.check.SymTypeExpressionFactory;
import de.monticore.types.mccollectiontypes._ast.ASTMCGenericType;
import de.monticore.types.mcstructuraltypes._ast.ASTMCTupleType;
import de.se_rwth.commons.logging.Log;

import java.util.ArrayList;
Expand All @@ -47,7 +48,17 @@ private List<SymTypeExpression> getTypeCompletion(List<ASTSpecialization> specia

for(var mcType: astTyping.getSuperTypesList()) {
SymTypeExpression res = null;
if(mcType instanceof ASTMCGenericType) {
if(mcType instanceof ASTMCTupleType) {
var tupleType = (ASTMCTupleType) mcType;
List<SymTypeExpression> componentTypes = new ArrayList<>();
for(var componentMcType : tupleType.getMCTypeList()) {
componentTypes.add(SymTypeExpressionFactory.createTypeExpression(
componentMcType.printType(),
(IBasicSymbolsScope) componentMcType.getEnclosingScope()));
}
res = SymTypeExpressionFactory.createTuple(componentTypes);
}
else if(mcType instanceof ASTMCGenericType) {
// We still have to print when the type is generic because the defining symbol does not give info about the
// instantiation with type arguments
res = SymTypeExpressionFactory.createTypeExpression(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean isIntegralType(SymTypeExpression type) {
protected void calculateFieldAccessAboutPortUsage(SymTypeExpression type) {
if (this.isStream) {
//case for isStream == true
if (type.getTypeInfo().getName().contains("Stream")) {
if (type.hasTypeInfo() && type.getTypeInfo().getName().contains("Stream")) {
//type is already Stream, set TypeCheckResult
getTypeCheckResult().setResult(type);
} else {
Expand Down
Loading