| 5145 | |
| 5146 | #ifndef AS_NO_COMPILER |
| 5147 | int asCBuilder::RegisterScriptFunctionFromNode(asCScriptNode *node, asCScriptCode *file, asCObjectType *objType, bool isInterface, bool isGlobalFunction, asSNameSpace *ns, bool isExistingShared, bool isMixin, sClassDeclaration* decl) |
| 5148 | { |
| 5149 | asCString name; |
| 5150 | asCDataType returnType; |
| 5151 | asCArray<asCString> parameterNames; |
| 5152 | asCArray<asCDataType> parameterTypes; |
| 5153 | asCArray<asETypeModifiers> inOutFlags; |
| 5154 | asCArray<asCString *> defaultArgs; |
| 5155 | asSFunctionTraits funcTraits; |
| 5156 | |
| 5157 | asASSERT( (objType && ns == 0) || isGlobalFunction || isMixin ); |
| 5158 | |
| 5159 | // Set the default namespace |
| 5160 | if( ns == 0 ) |
| 5161 | { |
| 5162 | if( objType ) |
| 5163 | ns = objType->nameSpace; |
| 5164 | else |
| 5165 | ns = engine->nameSpaces[0]; |
| 5166 | } |
| 5167 | |
| 5168 | GetParsedFunctionDetails(node, file, objType, name, returnType, parameterNames, parameterTypes, inOutFlags, defaultArgs, funcTraits, ns); |
| 5169 | |
| 5170 | return RegisterScriptFunction(node, file, objType, isInterface, isGlobalFunction, ns, isExistingShared, isMixin, name, returnType, parameterNames, parameterTypes, inOutFlags, defaultArgs, funcTraits, decl); |
| 5171 | } |
| 5172 | |
| 5173 | asCScriptFunction *asCBuilder::RegisterLambda(asCScriptNode *node, asCScriptCode *file, asCScriptFunction *funcDef, const asCString &name, asSNameSpace *ns, bool isShared) |
| 5174 | { |
nothing calls this directly
no test coverage detected