MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / checkIfBuiltInTypeOrErrorOut

Function checkIfBuiltInTypeOrErrorOut

src/DesignCompile/ElaborationStep.cpp:1214–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214void checkIfBuiltInTypeOrErrorOut(DesignComponent* def, const FileContent* fC,
1215 NodeId id, const DataType* type,
1216 std::string_view interfName,
1217 ErrorContainer* errors,
1218 SymbolTable* symbols) {
1219 if (def == nullptr && type == nullptr && (interfName != "logic") &&
1220 (interfName != "byte") && (interfName != "bit") &&
1221 (interfName != "new") && (interfName != "expect") &&
1222 (interfName != "var") && (interfName != "signed") &&
1223 (interfName != "unsigned") && (interfName != "do") &&
1224 (interfName != "final") && (interfName != "global") &&
1225 (interfName != "soft")) {
1226 Location loc(fC->getFileId(id), fC->Line(id), fC->Column(id),
1227 symbols->registerSymbol(interfName));
1228 Error err(ErrorDefinition::COMP_UNDEFINED_TYPE, loc);
1229 errors->addError(err);
1230 }
1231}
1232
1233bool bindStructInPackage(Design* design, Signal* signal,
1234 std::string_view packageName,

Callers 1

bindPortType_Method · 0.85

Calls 5

getFileIdMethod · 0.45
LineMethod · 0.45
ColumnMethod · 0.45
registerSymbolMethod · 0.45
addErrorMethod · 0.45

Tested by

no test coverage detected