MCPcopy Create free account
hub / github.com/Kitware/VTK / CheckSyntax

Method CheckSyntax

Common/Misc/vtkFunctionParser.cxx:1187–1204  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1185
1186//------------------------------------------------------------------------------
1187int vtkFunctionParser::CheckSyntax()
1188{
1189 int pos = -1;
1190 char* error = nullptr;
1191
1192 this->CheckExpression(pos, &error);
1193
1194 if (pos != -1 || error)
1195 {
1196 vtkErrorMacro(<< error << "; "
1197 << " see position " << pos);
1198 return 0;
1199 }
1200 else
1201 {
1202 return 1;
1203 }
1204}
1205
1206//------------------------------------------------------------------------------
1207void vtkFunctionParser::CopyParseError(int& position, char** error)

Callers 1

ParseMethod · 0.95

Calls 1

CheckExpressionMethod · 0.95

Tested by

no test coverage detected