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

Method BfModule

IDEHelper/Compiler/BfModule.cpp:924–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922BfModule* gLastCreatedModule = NULL;
923
924BfModule::BfModule(BfContext* context, const StringImpl& moduleName)
925{
926 BfLogSys(context->mSystem, "BfModule::BFModule %p %s\n", this, moduleName.c_str());
927
928 gLastCreatedModule = this;
929
930 mContext = context;
931 mModuleName = moduleName;
932 if (!moduleName.empty())
933 {
934 StringT<256> upperModuleName = moduleName;
935 MakeUpper(upperModuleName);
936 mContext->mUsedModuleNames.Add(upperModuleName);
937 }
938 mAddedToCount = false;
939
940 mParentModule = NULL;
941 mNextAltModule = NULL;
942 mBfIRBuilder = NULL;
943 mWantsIRIgnoreWrites = false;
944 mModuleOptions = NULL;
945 mLastUsedRevision = -1;
946 mUsedSlotCount = -1;
947
948 mIsReified = true;
949 mGeneratesCode = true;
950 mReifyQueued = false;
951 mIsSpecialModule = false;
952 mIsComptimeModule = false;
953 mIsScratchModule = false;
954 mIsSpecializedMethodModuleRoot = false; // There may be mNextAltModules extending from this
955 mHadBuildError = false;
956 mHadBuildWarning = false;
957 mIgnoreErrors = false;
958 mHadIgnoredError = false;
959 mIgnoreWarnings = false;
960 mReportErrors = true;
961 mIsInsideAutoComplete = false;
962 mIsDeleting = false;
963 mSkipInnerLookup = false;
964 mIsHotModule = false;
965 mSetIllegalSrcPosition = false;
966 mNoResolveGenericParams = false;
967 mWroteToLib = false;
968 mContext = context;
969 mCompiler = context->mCompiler;
970 mSystem = mCompiler->mSystem;
971 mProject = NULL;
972 mCurMethodState = NULL;
973 mAttributeState = NULL;
974 mCurLocalMethodId = 0;
975 mParentNodeEntry = NULL;
976
977 mRevision = -1;
978 mRebuildIdx = 0;
979 mLastModuleWrittenRevision = 0;
980 mIsModuleMutable = false;
981 mExtensionCount = 0;

Callers

nothing calls this directly

Calls 4

BfIRFunctionClass · 0.85
c_strMethod · 0.45
emptyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected