Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.od4data._symboltable;

import com.google.common.base.Preconditions;
import de.monticore.odbasis._ast.ASTODArtifact;
import de.monticore.odbasis._symboltable.ODBasisScopesGenitor;
import de.monticore.symboltable.ImportStatement;
Expand All @@ -18,7 +19,7 @@ public OD4DataScopesGenitor() {

@Override
public IOD4DataArtifactScope createFromAST(ASTODArtifact rootNode) {
Log.errorIfNull(rootNode,
Preconditions.checkNotNull(rootNode,
"0xAE882 Error by creating of the OD4DataScopesGenitor symbol table: top ast node"
+ " is null");
IOD4DataArtifactScope artifactScope = de.monticore.od4data.OD4DataMill.artifactScope();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.od4development._symboltable;

import com.google.common.base.Preconditions;
import de.monticore.odbasis._ast.ASTODArtifact;
import de.monticore.symboltable.ImportStatement;
import de.se_rwth.commons.logging.Log;
Expand All @@ -10,7 +11,7 @@
public class OD4DevelopmentScopesGenitor extends OD4DevelopmentScopesGenitorTOP {

public IOD4DevelopmentArtifactScope createFromAST (ASTODArtifact rootNode) {
Log.errorIfNull(rootNode, "0xA7004x78995 Error by creating of the OD4DevelopmentScopesGenitor symbol table: top ast node is null");
Preconditions.checkNotNull(rootNode, "0xA7004x78995 Error by creating of the OD4DevelopmentScopesGenitor symbol table: top ast node is null");
IOD4DevelopmentArtifactScope artifactScope = de.monticore.od4development.OD4DevelopmentMill.artifactScope();

// set package
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.od4report._symboltable;

import com.google.common.base.Preconditions;
import de.monticore.od4report.OD4ReportMill;
import de.monticore.od4report._ast.ASTODReportObject;
import de.monticore.odbasis._ast.ASTODArtifact;
Expand Down Expand Up @@ -50,7 +51,7 @@ private VariableSymbolBuilder create_ODReportObject(ASTODReportObject astodRepor

@Override
public IOD4ReportArtifactScope createFromAST(ASTODArtifact rootNode) {
Log.errorIfNull(rootNode,
Preconditions.checkNotNull(rootNode,
"0xAE881 Error by creating of the OD4ReportScopesGenitor symbol table: top ast node"
+ " is null");
IOD4ReportArtifactScope artifactScope = de.monticore.od4report.OD4ReportMill.artifactScope();
Expand Down
Loading