Home
last modified time | relevance | path

Searched refs:lang (Results 1 – 25 of 25) sorted by relevance

/arkcompiler/runtime_core/assembler/
Dassembly-record.h42 …Record(std::string s, panda::panda_file::SourceLang lang, size_t b_l, size_t b_r, std::string f_c,… in Record()
45 language(lang), in Record()
46 metadata(extensions::MetadataExtension::CreateRecordMetadata(lang)), in Record()
51 Record(std::string s, panda::panda_file::SourceLang lang) in Record()
52 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
Dassembly-function.h66 Parameter(Type t, panda::panda_file::SourceLang lang) in Parameter()
67 : type(std::move(t)), metadata(extensions::MetadataExtension::CreateParamMetadata(lang)) in Parameter()
125 …Function(std::string s, panda::panda_file::SourceLang lang, size_t b_l, size_t b_r, std::string f_… in Function()
128 language(lang), in Function()
129 metadata(extensions::MetadataExtension::CreateFunctionMetadata(lang)), in Function()
134 Function(std::string s, panda::panda_file::SourceLang lang) in Function()
135 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateFunctionMetada… in Function()
Dassembly-field.h39 explicit Field(panda::panda_file::SourceLang lang) in Field()
40 : metadata(extensions::MetadataExtension::CreateFieldMetadata(lang)) in Field()
Dassembly-type.cpp117 bool Type::IsStringType(const std::string &name, panda::panda_file::SourceLang lang) in IsStringType() argument
119 auto string_type = Type::FromDescriptor(panda::panda_file::GetStringClassDescriptor(lang)); in IsStringType()
Dassembly-program.h33 panda::panda_file::SourceLang lang {panda::panda_file::SourceLang::PANDA_ASSEMBLY};
Dassembly-type.h169 static bool IsStringType(const std::string &name, panda::panda_file::SourceLang lang);
Dassembly-parser.cpp59 curr_record_->field_list.emplace_back(program_.lang); in ParseRecordFields()
398 } else if (panda::pandasm::Type::IsStringType(type_with_slash.GetName(), program_.lang)) { in ParseArrayElementType()
794 auto lang = context_.GiveToken(); in ParseAsLanguageDirective() local
795 auto res = panda::panda_file::LanguageFromString(lang); in ParseAsLanguageDirective()
809 program_.lang = res.value(); in ParseAsLanguageDirective()
1843 it_record->second.field_list.emplace_back(program_.lang); in ParseOperandField()
2159 Function::Parameter parameter(type, program_.lang); in ParseFunctionArg()
Dassembly-parser.h229 … std::string(context_.GiveToken().data(), context_.GiveToken().length()), program_.lang, in TryEmplaceInTable()
Dassembly-emitter.cpp652 … Type::FromDescriptor(panda::panda_file::GetStringClassDescriptor(program.lang)), 1)) != in MakeLiteralItems()
914 (*area)->SetSourceLang(program.lang); in HandleRecordOnwer()
/arkcompiler/runtime_core/assembler/extensions/
Dextensions.h32 static std::unique_ptr<RecordMetadata> CreateRecordMetadata(panda::panda_file::SourceLang lang);
34 static std::unique_ptr<FieldMetadata> CreateFieldMetadata(panda::panda_file::SourceLang lang);
36 …tatic std::unique_ptr<FunctionMetadata> CreateFunctionMetadata(panda::panda_file::SourceLang lang);
38 static std::unique_ptr<ParamMetadata> CreateParamMetadata(panda::panda_file::SourceLang lang);
Dregister_extensions.h.erb23 …andasm::RecordMetadata> MetadataExtension::CreateRecordMetadata(panda::panda_file::SourceLang lang)
25 switch (lang) {
38 …:pandasm::FieldMetadata> MetadataExtension::CreateFieldMetadata(panda::panda_file::SourceLang lang)
40 switch (lang) {
53 …sm::FunctionMetadata> MetadataExtension::CreateFunctionMetadata(panda::panda_file::SourceLang lang)
55 switch (lang) {
68 …:pandasm::ParamMetadata> MetadataExtension::CreateParamMetadata(panda::panda_file::SourceLang lang)
70 switch (lang) {
/arkcompiler/runtime_core/templates/
Dcommon.rb85 def lang_field_name(lang) argument
86 "#{lang}.#{name}".tr('-', '_').tr('.', '_') + '_'
89 def lang_camel_name(lang) argument
90 n = "#{lang}.#{name}".split(Regexp.union(['-', '.'])).map(&:capitalize).join
188 option.lang.each do |lang|
189 lang_spec_option[:description] = "#{option.description}. Only for #{lang}"
190 lang_spec_option[:name] = "#{lang}.#{option.name}"
/arkcompiler/runtime_core/templates/options/
Doptions.h.erb67 <%= op.type %> <%= op.getter_name %>([[maybe_unused]] std::string_view lang = "") const {
81 bool WasSet<%= op.camel_name %>([[maybe_unused]] std::string_view lang = "") const {
89 <%= op.type %> <%= op.getter_name %>(std::string_view lang) const {
93 % op.lang.each do |lang|
94 if (lang == "<%= "#{lang}" %>") {
95 …return WasSet<%= op.lang_camel_name(lang) %>() ? <%= op.lang_field_name(lang) %>.GetValue() : <%= …
108 bool WasSet<%= op.camel_name %>(std::string_view lang) const {
112 % op.lang.each do |lang|
113 if (lang == "<%= "#{lang}" %>") {
114 return <%= op.lang_field_name(lang) %>.WasSet();
/arkcompiler/runtime_core/libpandafile/templates/
Dsource_lang_enum.h.erb39 static constexpr size_t GetLangArrIndex(panda_file::SourceLang lang)
42 if (panda::panda_file::LANG_ITERATOR[index] == lang) {
51 inline std::ostream &operator<<(std::ostream &stream, SourceLang lang)
53 switch (lang) {
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp21 protoProgram.set_lang(static_cast<uint32_t>(program.lang)); in Serialize()
55 program.lang = static_cast<panda::panda_file::SourceLang>(protoProgram.lang()); in Deserialize()
/arkcompiler/runtime_core/libpandafile/
Dfile_items.cpp27 bool IsDynamicLanguage(panda::panda_file::SourceLang lang) in IsDynamicLanguage() argument
29 return lang == panda::panda_file::SourceLang::ECMASCRIPT; in IsDynamicLanguage()
32 std::optional<panda::panda_file::SourceLang> LanguageFromString(std::string_view lang) in LanguageFromString() argument
34 if (lang == "ECMAScript") { in LanguageFromString()
40 const char *LanguageToString(panda::panda_file::SourceLang lang) in LanguageToString() argument
42 if (lang == panda::panda_file::SourceLang::ECMASCRIPT) { in LanguageToString()
48 const char *GetCtorName([[maybe_unused]] panda::panda_file::SourceLang lang) in GetCtorName() argument
53 const char *GetCctorName([[maybe_unused]] panda::panda_file::SourceLang lang) in GetCctorName() argument
58 const char *GetStringClassDescriptor(panda::panda_file::SourceLang lang) in GetStringClassDescriptor() argument
60 if (lang == panda::panda_file::SourceLang::ECMASCRIPT) { in GetStringClassDescriptor()
Dfile_items.h85 bool IsDynamicLanguage(panda::panda_file::SourceLang lang);
86 std::optional<panda::panda_file::SourceLang> LanguageFromString(std::string_view lang);
87 const char *LanguageToString(panda::panda_file::SourceLang lang);
88 const char *GetCtorName(panda::panda_file::SourceLang lang);
89 const char *GetCctorName(panda::panda_file::SourceLang lang);
90 const char *GetStringClassDescriptor(panda::panda_file::SourceLang lang);
864 void SetSourceLang(SourceLang lang) in SetSourceLang() argument
866 source_lang_ = lang; in SetSourceLang()
1030 void SetSourceLang(SourceLang lang) in SetSourceLang() argument
1032 source_lang_ = lang; in SetSourceLang()
/arkcompiler/ets_frontend/merge_abc/protos/
DassemblyProgram.proto41 uint32 lang = 1; field
/arkcompiler/runtime_core/tests/checked/
Dstack_overflow.pa20 #.record java.lang.StackOverflowError <external>
/arkcompiler/runtime_core/docs/
Dirtoc.md15 Each opcode in the IR instructions has corresponding token in the irtoc lang. For example, IR instr…
29 available in Irtoc lang. They can be set in the similar way as in the IrConstructor:
/arkcompiler/runtime_core/bytecode_optimizer/
Dir_interface.h148 return prog_ != nullptr ? prog_->lang : panda_file::SourceLang::PANDA_ASSEMBLY; in GetSourceLang()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp1502 prog.lang = panda::pandasm::extensions::Language::ECMASCRIPT; in EmitAndRestoreProgram()
1585 prog.lang = panda::pandasm::extensions::Language::ECMASCRIPT; in GenerateProgramsFromPipe()
1602 prog.lang = panda::pandasm::extensions::Language::ECMASCRIPT; in GenerateProgram()
1643 prog.lang = LANG_EXT; in CompileNpmEntries()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp308 prog_->lang = LANG_EXT; in Emitter()
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2 …es:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:… property
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js7098 …return "string" == typeof t ? t.substr(e, i) : t.length >= e + i || e ? new java.lang.String(t, e,…