MCPcopy Create free account
hub / github.com/beefytech/Beef / Add

Method Add

IDEHelper/Compiler/BfCompiler.cpp:9989–10012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9987 }
9988
9989 void Add(int anchor, int end, char kind = '?', int minLines = 2)
9990 {
9991 if ((anchor == -1) || (end == -1))
9992 return;
9993
9994 if (!mEndsFound.Add(end))
9995 return;
9996
9997 int lineCount = 1;
9998 for (int i = anchor; i < end; i++)
9999 {
10000 if (mParser->mSrc[i] == '\n')
10001 {
10002 lineCount++;
10003 if (lineCount >= minLines)
10004 break;
10005 }
10006 }
10007 if (lineCount < minLines)
10008 return;
10009 char str[1024];
10010 sprintf(str, "%c%d,%d\n", kind, anchor, end);
10011 mOutString.Append(str);
10012 }
10013
10014 void Add(BfAstNode* anchor, BfAstNode* end, char kind = '?', int minLines = 2)
10015 {

Callers 15

CheckModuleStringRefsMethod · 0.45
GetTestMethodsMethod · 0.45
EmitTestMethodMethod · 0.45
CreateVDataMethod · 0.45
_SortedTypeEntryMethod · 0.45
UpdateDependencyMapMethod · 0.45
SlowGenerateSlotNumsMethod · 0.45
UpdateRevisedTypesMethod · 0.45
AddToRebuildTypeListMethod · 0.45
PopulateReifiedMethod · 0.45

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected