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

Method MoreInfoAt

IDEHelper/Compiler/BfSystem.cpp:1932–1955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932BfMoreInfo* BfPassInstance::MoreInfoAt(const StringImpl& info, BfSourceData* bfSource, int srcIdx, int srcLen, BfFailFlags flags)
1933{
1934 if (!mLastWasDisplayed)
1935 {
1936 if (mLastWasAdded)
1937 {
1938 auto lastError = mErrors.back();
1939 BfMoreInfo* moreInfo = new BfMoreInfo();
1940 moreInfo->mInfo = info;
1941 moreInfo->SetSource(this, bfSource);
1942 moreInfo->mSrcStart = srcIdx;
1943 moreInfo->mSrcEnd = srcIdx + srcLen;
1944
1945 lastError->mMoreInfo.push_back(moreInfo);
1946 return moreInfo;
1947 }
1948
1949 return NULL;
1950 }
1951
1952 String msgPrefix;
1953 MessageAt(msgPrefix, " > " + info, bfSource, srcIdx, srcLen, flags);
1954 return NULL;
1955}
1956
1957BfMoreInfo* BfPassInstance::MoreInfo(const StringImpl& info, bool forceQueue)
1958{

Callers 2

FailCurrentMethod · 0.80
NextTokenMethod · 0.80

Calls 3

backMethod · 0.45
SetSourceMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected