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

Method AddField

IDEHelper/Compiler/BfDefBuilder.cpp:1275–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1273}
1274
1275BfFieldDef* BfDefBuilder::AddField(BfTypeDef* typeDef, BfTypeReference* fieldType, const StringImpl& fieldName)
1276{
1277 BfFieldDef* fieldDef = new BfFieldDef();
1278 fieldDef->mDeclaringType = typeDef;
1279 fieldDef->mTypeRef = fieldType;
1280 fieldDef->mName = fieldName;
1281 fieldDef->mIdx = (int)typeDef->mFields.size();
1282 typeDef->mFields.push_back(fieldDef);
1283 return fieldDef;
1284}
1285
1286BfMethodDef* BfDefBuilder::AddMethod(BfTypeDef* typeDef, BfMethodType methodType, BfProtection protection, bool isStatic, const StringImpl& name, bool addedAfterEmit)
1287{

Callers 6

CreateTupleTypeMethod · 0.45
ResolveGenericTypeMethod · 0.45
ResolveTypeRef_RefMethod · 0.45
DoTypeIntAttrMethod · 0.45
VisitMethod · 0.45
GetLambdaInstanceMethod · 0.45

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected