42 #include "as_config.h" 43 #include "as_symboltable.h" 44 #include "as_scriptengine.h" 45 #include "as_module.h" 46 #include "as_memory.h" 47 #include "as_scriptcode.h" 48 #include "as_scriptnode.h" 49 #include "as_datatype.h" 50 #include "as_property.h" 59 #ifndef AS_NO_COMPILER 68 bool isExistingShared;
83 asQWORD constantValue;
91 declNode = o.declNode;
92 initNode = o.initNode;
109 isExistingShared =
false;
118 bool isExistingShared;
138 #endif // AS_NO_COMPILER 147 int ParseDataType(
const char *datatype,
asCDataType *result,
asSNameSpace *implicitNamespace,
bool isReturnType =
false);
155 #ifndef AS_NO_COMPILER 156 int AddCode(
const char *name,
const char *code,
int codeLength,
int lineOffset,
int sectionIdx,
bool makeCopy);
157 asCScriptCode *FindOrAddCode(
const char *name,
const char *code,
size_t length);
160 int CompileFunction(
const char *sectionName,
const char *code,
int lineOffset, asDWORD compileFlags,
asCScriptFunction **outFunc);
161 int CompileGlobalVar(
const char *sectionName,
const char *code,
int lineOffset);
172 void WriteInfo(
const asCString &scriptname,
const asCString &msg,
int r,
int c,
bool preMessage);
180 asCGlobalProperty *GetGlobalProperty(
const char *prop,
asSNameSpace *ns,
bool *isCompiled,
bool *isPureConstant, asQWORD *constantValue,
bool *isAppProp);
203 #ifndef AS_NO_COMPILER 217 int RegisterScriptFunction(
asCScriptNode *node,
asCScriptCode *file,
asCObjectType *objType,
bool isInterface,
bool isGlobalFunction,
asSNameSpace *ns,
bool isExistingShared,
bool isMixin,
asCString &name,
asCDataType &returnType,
asCArray<asCString> ¶meterNames,
asCArray<asCDataType> ¶meterTypes,
asCArray<asETypeModifiers> &inOutFlags,
asCArray<asCString *> &defaultArgs,
asSFunctionTraits funcTraits);
227 void CompleteFuncDef(
sFuncDef *funcDef);
228 void CompileInterfaces();
229 void CompileClasses(asUINT originalNumTempl);
230 void DetermineTypeRelations();
231 void GetParsedFunctionDetails(
asCScriptNode *node,
asCScriptCode *file,
asCObjectType *objType,
asCString &name,
asCDataType &returnType,
asCArray<asCString> ¶meterNames,
asCArray<asCDataType> ¶meterTypes,
asCArray<asETypeModifiers> &inOutFlags,
asCArray<asCString *> &defaultArgs,
asSFunctionTraits &traits,
asSNameSpace *implicitNamespace);
232 bool DoesMethodExist(
asCObjectType *objType,
int methodId, asUINT *methodIndex = 0);
239 void CompileFunctions();
240 void CompileGlobalVariables();
243 bool DoesTypeExist(
const asCString &type);
248 void EvaluateTemplateInstances(asUINT startIdx,
bool keepSilent);
249 void CleanupEnumValues();
261 bool hasCachedKnownTypes;
Definition: as_module.h:93
Definition: as_typeinfo.h:64
Definition: as_builder.h:140
Definition: as_scriptcode.h:48
Definition: as_scriptfunction.h:146
Definition: as_objecttype.h:100
Definition: as_builder.h:124
Definition: as_property.h:53
Definition: as_namespace.h:39
Definition: as_scriptfunction.h:114
Definition: as_compiler.h:209
Definition: as_builder.h:86
Definition: as_typeinfo.h:263
Definition: as_builder.h:103
Definition: as_datatype.h:60
Definition: as_property.h:68
Definition: as_builder.h:61
Definition: as_parser.h:50
Definition: as_typeinfo.h:292
Definition: as_builder.h:131
Definition: as_builder.h:71
Definition: as_scriptengine.h:64
Definition: as_scriptnode.h:104
Definition: as_string.h:41