Lines Matching full:static
59 * in abc2program and modify the ohmurl for dynamic and static imports.
92 static constexpr std::string_view DLL = ".dll";
93 static constexpr std::string_view SO = ".so";
94 static constexpr std::string_view DYLIB = ".dylib";
117 static bool IsGlobalIdentifier(const util::StringView &str);
118 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args);
119 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit);
122 static bool IsInteger(double number);
123 static bool IsIndex(double number);
124 static int64_t GetIndex(const util::StringView &str);
126 static bool FileExtensionIs(std::string_view filePath, std::string_view extension);
127 static bool EndsWith(std::string_view str, std::string_view suffix);
128 static std::string DoubleToString(double number);
129 …static int32_t GetIntegerSignificandBitCount(double number, int32_t &numberBitCount, char *signifi…
130 …static void GetScientificNotationForDouble(double number, uint32_t significandBitCount, int32_t &n…
132 static std::string ToString(double number);
133 static util::StringView ToStringView(ArenaAllocator *allocator, double number);
134 static util::StringView ToStringView(ArenaAllocator *allocator, int32_t number);
135 static util::StringView ToStringView(ArenaAllocator *allocator, uint32_t number);
137 static const ir::ScriptFunction *GetContainingConstructor(const ir::AstNode *node);
138 static const ir::ScriptFunction *GetContainingConstructor(const ir::ClassProperty *node);
139 static const ir::ScriptFunction *GetContainingFunction(const ir::AstNode *node);
140 static const ir::ClassDefinition *GetClassDefiniton(const ir::ScriptFunction *node);
141 static bool IsSpecialPropertyKey(const ir::Expression *expr);
142 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
143 static bool IsConstantExpr(const ir::Expression *expr);
144 static bool IsBindingPattern(const ir::AstNode *node);
145 static bool IsPattern(const ir::AstNode *node);
146 static std::vector<const ir::Identifier *> CollectBindingNames(const ir::AstNode *node);
147 static util::StringView FunctionName(ArenaAllocator *allocator, const ir::ScriptFunction *func);
148 static util::StringView GetName(ArenaAllocator *allocator, const ir::AstNode *node);
149 …static std::tuple<util::StringView, bool> ParamName(ArenaAllocator *allocator, const ir::AstNode *…
151 static bool IsChild(const ir::AstNode *parent, const ir::AstNode *child);
152 static bool IsChildScope(const binder::Scope *parent, const binder::Scope *child);
153 …static bool IsObjectPropertyValue(const ArenaVector<ir::Expression *> &properties, const ir::AstNo…
154 static SignedNumberLiteral GetSignedNumberLiteral(const ir::Expression *expr);
156 …static void SetConstantLocalExportSlots(const std::string &record, const std::unordered_set<uint32…
157 static void AnalysisProgram(panda::pandasm::Program *prog, const std::string &inputFile);
158 static void OptimizeProgram(panda::pandasm::Program *prog, const std::string &inputFile);
159 static bool CheckAopTransformPath(const std::string &libPath);
160 static AopTransformFuncDef LoadAopTransformLibFunc(const std::string &libPath,
162 static bool AopTransform(const std::string &inputFile, const std::string &libPath);
164 …static T BaseName(T const &path, T const &delims = std::string(panda::os::file::File::GetPathDelim…
165 static bool ReadFileToBuffer(const std::string &file, std::stringstream &ss);
166 …static void ScanDirectives(ir::ScriptFunction *func, const lexer::LineIndex &lineIndex, bool enabl…
168 static std::string GetHashString(const std::string &str);
169 static std::wstring Utf8ToUtf16(const std::string &utf8);
171 static T FileStream(const std::string &str, Args &&...args);
172 …static void ThrowError(ErrorType type, const parser::Program *program, const lexer::SourcePosition…
174 static bool IsUseShared(const ir::Statement *statement);
175 static const ir::ClassDefinition *GetContainingSendableClass(const ir::AstNode *node);
176 static bool IsSpecialScopeName(const util::StringView &str);
177 …static bool BelongingToRecords(const std::string &name, const std::unordered_set<std::string> &ret…
179 …static void RemoveProgramsRedundantData(std::map<std::string, panda::es2panda::util::ProgramCache*…
181 static bool IsDefaultApiVersion(int apiVersion, std::string subApiVersion);
182 static bool IsSupportLazyImportVersion(int apiVersion, std::string subApiVersion);
183 static bool IsSupportLazyImportDefaultVersion(int apiVersion);
184 static bool IsEnableExpectedPropertyCountApiVersion(int apiVersion);
186 static const uint32_t MAX_DOUBLE_DIGIT = 310;
187 static const uint32_t MAX_DOUBLE_PRECISION_DIGIT = 17;
188 static const int32_t MAX_DECIMAL_EXPONENT = 21;
189 static const int32_t MIN_DECIMAL_EXPONENT = -6;
190 static const int32_t FAIL_SNPRINTF_S = -1;
191 static const uint32_t INVALID_INDEX = 4294967295L;
192 static const uint32_t MAX_INT32 = 2147483647;
193 static const uint32_t MAX_INT16 = std::numeric_limits<int16_t>::max();
194 static const uint32_t MAX_INT8 = std::numeric_limits<int8_t>::max();
195 static constexpr std::string_view USE_CONCURRENT = "use concurrent";
196 static constexpr std::string_view USE_SENDABLE = "use sendable";
197 static constexpr std::string_view USE_SHARED = "use shared";
198 …static constexpr std::string_view STRING_EMPTY = ""; // Default tag value, or tag of GlobalScope a…
199 static constexpr std::string_view CLASS_SCOPE_TAG = "~";
200 static constexpr std::string_view FUNCTION_TAG = "*";
201 static constexpr std::string_view METHOD_TAG = ">";
202 static constexpr std::string_view CTOR_TAG = "=";
203 static constexpr std::string_view NAMESPACE_TAG = "&";
204 static constexpr std::string_view ENUM_TAG = "%";
205 static constexpr std::string_view STATIC_METHOD_TAG = "<";
206 static constexpr std::string_view DUPLICATED_SEPERATOR = "^";
207 static constexpr std::string_view FUNC_NAME_SEPARATOR = "#";
208 static constexpr std::string_view INDEX_NAME_SPICIFIER = "@";
209 static constexpr std::string_view DOT = ".";
210 static constexpr std::string_view BACKSLASH = "\\";
211 static const uint64_t FNV_PRIME = 1099511628211U;
212 static const uint64_t FNV_OFFSET = 14695981039346656037U;
213 static const uint8_t SENDABLE_CLASS_MIN_SUPPORTED_API_VERSION = 11;
214 static const int32_t DEFAULT_TARGET_API_VERSION = 12;
215 static const int32_t ABC_TO_PROGRAM_MIN_SUPPORTED_API_VERSION = 12;
216 static constexpr std::array<uint8_t, panda_file::File::VERSION_SIZE>
218 static const int32_t SENDABLE_FUNCTION_MIN_SUPPORTED_API_VERSION = 12;
219 static const int32_t LAZY_IMPORT_MIN_SUPPORTED_API_VERSION = 12;
220 static const int32_t LAZY_IMPORT_DEFAULT_MIN_SUPPORTED_API_VERSION = 18;
221 static const int32_t SENDABLE_LAZY_LOADING_MIN_SUPPORTED_API_VERSION = 12;
222 static const int8_t SUPER_CALL_OPT_MIN_SUPPORTED_API_VERSION = 18;
223 static const int8_t SENDABLE_CLASS_USING_LOCAL_MODULE_VAR_MIN_SUPPORTED_API_VERSION = 18;
224 static const int8_t ENABLE_EXPECTED_PROPERTY_COUNT_MIN_SUPPORTED_API_VERSION = 18;
225 static constexpr std::string_view SUB_API_VERSION_1 = "beta1";
226 static constexpr std::string_view SUB_API_VERSION_2 = "beta2";
227 static constexpr std::string_view DEFAULT_SUB_API_VERSION = SUB_API_VERSION_1;
230 static bool SetFuncFlagsForDirectives(const ir::StringLiteral *strLit, ir::ScriptFunction *func,