| 865 | } |
| 866 | |
| 867 | String BfAstNode::LocationToString() |
| 868 | { |
| 869 | auto parserData = GetParserData(); |
| 870 | if (parserData == NULL) |
| 871 | return String(); |
| 872 | |
| 873 | String loc; |
| 874 | |
| 875 | int line = -1; |
| 876 | int lineChar = -1; |
| 877 | parserData->GetLineCharAtIdx(mSrcStart, line, lineChar); |
| 878 | if (line != -1) |
| 879 | loc += StrFormat("at line %d:%d", line + 1, lineChar + 1); |
| 880 | loc += " in "; |
| 881 | loc += parserData->mFileName; |
| 882 | |
| 883 | return loc; |
| 884 | } |
| 885 | |
| 886 | void BfAstNode::Add(BfAstNode* bfAstNode) |
| 887 | { |
no test coverage detected