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

Method ToString

IDEHelper/Compiler/BfAst.cpp:1039–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039String BfAstNode::ToString()
1040{
1041 int srcLen = GetSrcLength();
1042 if (srcLen <= 0)
1043 {
1044 if (auto namedTypeRef = BfNodeDynCast<BfNamedTypeReference>(this))
1045 return namedTypeRef->mNameNode->ToString();
1046
1047 return "";
1048 }
1049
1050 auto source = GetSourceData();
1051 String str(source->mSrc + GetSrcStart(), srcLen);
1052 return str;
1053}
1054
1055StringView BfAstNode::ToStringView()
1056{

Callers 15

TryCaseEnumMatchMethod · 0.45
HandleCaseBindMethod · 0.45
VisitCodeBlockMethod · 0.45
VisitMethod · 0.45
DoForLessMethod · 0.45
VisitMethod · 0.45
NewScopeStateMethod · 0.45
LocalVariableDoneMethod · 0.45
CreateTypeDataMethod · 0.45

Calls 3

AppendMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected