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