Home
last modified time | relevance | path

Searched refs:Extension (Results 1 - 25 of 35) sorted by relevance

12

/arkcompiler/ets_frontend/arkguard/scripts/
H A Dobfuscate_script.js19 import { Extension } from '../src/common/type';
42 return entry.endsWith(Extension.TS) || entry.endsWith(Extension.JS) || entry.endsWith(Extension.DETS);
H A Dexecute_result_statistics.js20 import { Extension } from '../src/common/type';
62 } else if ((filePath.endsWith(Extension.TS) || filePath.endsWith(Extension.JS)) && !(filePath.endsWith(Extension.DETS) ||
63 filePath.endsWith(Extension.DTS))) {
66 } else if (filePath.endsWith(Extension.DETS) || filePath.endsWith(Extension.DTS)) {
H A Dgrammar_test.py39 class Extension: class
51 Extension.DETS,
52 Extension.ETS,
53 Extension.DTS,
54 Extension.TS,
55 Extension.JS,
56 Extension.JSON,
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.h145 return Extension() == ScriptExtension::ETS; in IsETSBinder()
150 ASSERT(Extension() == ScriptExtension::ETS); in AsETSBinder()
182 virtual ScriptExtension Extension() const in Extension() function in ark::es2panda::ark::es2panda::ark::es2panda::ark::es2panda::varbinder::VarBinder
303 if (!checkEval || varbinder->Extension() == ScriptExtension::TS) { in Enter()
366 if (scope_->AddTsDecl(Allocator(), decl, Extension()) != nullptr) { in AddTsDecl()
378 if (scope_->AddDecl(Allocator(), decl, Extension()) != nullptr) { in AddDecl()
389 varbinder::Variable *var = scope_->AddDecl(Allocator(), decl, Extension()); in NewVarDecl()
H A DASBinder.h30 ScriptExtension Extension() const override
H A DTSBinder.h30 ScriptExtension Extension() const override
/arkcompiler/ets_frontend/ets2panda/parser/context/
H A DparserContext.cpp22 : program_(program), status_(status), lang_(ToLanguage(program->Extension())) in ParserContext()
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp123 if (Extension() == ScriptExtension::TS) { in InitLexer()
143 if (Extension() == ScriptExtension::TS) { in Parse()
169 if (Extension() == ScriptExtension::TS) { in Parse()
1453 if (Extension() == ScriptExtension::TS && in ParseTsTypeLiteralOrInterfaceKeyModifiers()
1826 (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::KEYW_THIS)) { in IsTsFunctionType()
2282 if ((Extension() == ScriptExtension::JS && nextCp != LEX_CHAR_LEFT_PAREN) || in ParseClassKeyModifiers()
2283 (Extension() == ScriptExtension::TS && in ParseClassKeyModifiers()
2361 } else if (Extension() == ScriptExtension::TS) { in ValidateClassKey()
2411 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::LITERAL_IDENT && in ParseClassKey()
2445 if (Extension() in ParseClassKey()
4366 ScriptExtension ParserImpl::Extension() const Extension() function in panda::es2panda::parser::ParserImpl
[all...]
H A DstatementParser.cpp206 if (Extension() == ScriptExtension::TS) { in ParseStatement()
606 if (Extension() == ScriptExtension::TS) { in ParseConstStatement()
669 if (Extension() == ScriptExtension::TS && IsTsDeclarationStatement()) { in ParsePotentialExpressionStatement()
811 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATOR_LESS_THAN) { in ParseTsInterfaceDeclaration()
1024 if (!allowBreak && Extension() == ScriptExtension::JS) { in ParseBreakStatement()
1028 if (!allowBreak && Extension() == ScriptExtension::TS) { in ParseBreakStatement()
1071 if (Extension() == ScriptExtension::TS && in ParseContinueStatement()
1078 if (Extension() == ScriptExtension::JS) { in ParseContinueStatement()
1081 if (Extension() == ScriptExtension::TS) { in ParseContinueStatement()
1256 if (Extension() in AddFunctionToBinder()
[all...]
H A DexpressionParser.cpp153 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::LITERAL_IDENT && in ParseTsAsExpression()
174 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::LITERAL_IDENT && in ParseTsSatisfiesExpression()
190 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATOR_LESS_THAN) { in ParseExpression()
284 if (Extension() == ScriptExtension::TS && (flags & ExpressionParseFlags::ALLOW_TS_PARAM_TOKEN) && in ParseArrayExpression()
414 Extension() == ScriptExtension::TS); in ParseArrowFunctionExpressionBody()
582 if (Extension() == ScriptExtension::TS && in ParseCoverParenthesizedExpressionAndArrowParameterList()
594 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATOR_COLON) { in ParseCoverParenthesizedExpressionAndArrowParameterList()
612 if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATOR_COLON) { in ParseCoverParenthesizedExpressionAndArrowParameterList()
642 if (Extension() == ScriptExtension::TS && ((context_.Status() & ParserStatus::FUNCTION_PARAM) || in ParseCoverParenthesizedExpressionAndArrowParameterList()
853 if (Extension() in ParseAssignmentExpression()
[all...]
H A Dcommonjs.cpp91 functionContext.Flags(), false, Extension() == ScriptExtension::TS); in ParseCommonjs()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.h298 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
316 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
333 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
351 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
H A Dbinder.cpp473 if (Program()->Extension() == ScriptExtension::TS) { in BuildVarDeclaratorId()
745 if (Program()->Extension() == ScriptExtension::JS) { in ResolveReference()
747 } else if (Program()->Extension() == ScriptExtension::TS && in ResolveReference()
792 if (Program()->Extension() == ScriptExtension::TS) { in ResolveReference()
806 if (Program()->Extension() == ScriptExtension::TS) { in ResolveReference()
840 if (Program()->Extension() == ScriptExtension::TS && (Program()->TargetApiVersion() < 11 || in ResolveReference()
/arkcompiler/ets_frontend/ets2panda/parser/program/
H A Dprogram.h60 extension_(varbinder->Extension()), in Program()
90 ScriptExtension Extension() const in Extension() function in ark::es2panda::ark::es2panda::ark::es2panda::parser::Program
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DenumPostCheckLowering.cpp43 if (program->Extension() != ScriptExtension::ETS) { in Perform()
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DentityDeclarator.cpp80 auto importLanguage = ToLanguage(debugInfoPlugin_.GetETSBinder()->Extension()); in CreateIrImport()
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
H A DclassBuilder.cpp58 ToLanguage(program->Extension())); in Build()
/arkcompiler/ets_frontend/ets2panda/test/unit/
H A Dast_dumper_test.cpp135 ark::es2panda::Compiler compiler(options->Extension(), options->ThreadCount()); in GetProgram()
H A Drest_parameter_flag_test.cpp89 es2panda::Compiler compiler(options->Extension(), options->ThreadCount()); in GetProgram()
/arkcompiler/ets_frontend/es2panda/parser/program/
H A Dprogram.h63 ScriptExtension Extension() const in Extension() function in panda::es2panda::panda::es2panda::panda::es2panda::parser::Program
/arkcompiler/ets_frontend/es2panda/
H A Des2panda.cpp45 if (parser_->Extension() == ScriptExtension::TS) { in Compiler()
301 if (ast->Extension() != ScriptExtension::TS) { in ProcessAstForTS()
/arkcompiler/ets_frontend/ets2panda/util/
H A Doptions.h74 es2panda::ScriptExtension Extension() const in Extension() function in ark::es2panda::util::Options
/arkcompiler/ets_frontend/ets2panda/aot/
H A Dmain.cpp143 es2panda::Compiler compiler(options->Extension(), options->ThreadCount(), std::move(pluginsOpt.value())); in Run()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.h318 ScriptExtension Extension() const in Extension() function in panda::es2panda::parser::Transformer
320 return program_->Extension(); in Extension()
/arkcompiler/ets_frontend/es2panda/lexer/
H A Dlexer.cpp1220 if (parserContext_->GetProgram()->Extension() == ScriptExtension::TS) { in CheckAwaitKeyword()
1255 if (parserContext_->GetProgram()->Extension() == ScriptExtension::JS) { in CheckEnumKeyword()
1284 if (parserContext_->GetProgram()->Extension() == ScriptExtension::TS && keywordType <= TokenType::KEYW_INTERFACE) { in CheckFutureReservedKeyword()

Completed in 24 milliseconds

12