Home
last modified time | relevance | path

Searched refs:Extension (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompilerImpl.cpp42 …bool isTypeExtractorEnabled = ((program->Extension() == ScriptExtension::TS) && options.typeExtrac… in Compile()
74 if (program->Extension() == ScriptExtension::TS) { in Compile()
Dfunction.cpp176 if (decl->IsConstructor() && pg->Binder()->Program()->Extension() != ScriptExtension::TS) { in CompileFunction()
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp40 if (parser_->Extension() == ScriptExtension::TS) { in Compiler()
85 if (ast.Extension() == ScriptExtension::TS && options.enableTypeCheck) { in Compile()
91 if (ast.Extension() == ScriptExtension::TS) { in Compile()
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp200 if (Extension() == ScriptExtension::TS) { in ParseStatement()
568 if (Extension() == ScriptExtension::TS) { in ParseConstStatement()
631 if (Extension() == ScriptExtension::TS && IsTsDeclarationStatement()) { in ParsePotentialExpressionStatement()
773 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATO… in ParseTsInterfaceDeclaration()
968 if (!allowBreak && Extension() == ScriptExtension::JS) { in ParseBreakStatement()
972 if (!allowBreak && Extension() == ScriptExtension::TS) { in ParseBreakStatement()
1015 if (Extension() == ScriptExtension::TS && in ParseContinueStatement()
1022 if (Extension() == ScriptExtension::JS) { in ParseContinueStatement()
1025 if (Extension() == ScriptExtension::TS) { in ParseContinueStatement()
1194 if (Extension() == ScriptExtension::TS) { in AddFunctionToBinder()
[all …]
DexpressionParser.cpp149 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::LITERAL_I… in ParseTsAsExpression()
168 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATO… in ParseExpression()
262 … if (Extension() == ScriptExtension::TS && (flags & ExpressionParseFlags::ALLOW_TS_PARAM_TOKEN) && in ParseArrayExpression()
392 Extension() == ScriptExtension::TS); in ParseArrowFunctionExpressionBody()
558 if (Extension() == ScriptExtension::TS && in ParseCoverParenthesizedExpressionAndArrowParameterList()
570 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATO… in ParseCoverParenthesizedExpressionAndArrowParameterList()
588 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATO… in ParseCoverParenthesizedExpressionAndArrowParameterList()
618 if (Extension() == ScriptExtension::TS && ((context_.Status() & ParserStatus::FUNCTION_PARAM) || in ParseCoverParenthesizedExpressionAndArrowParameterList()
827 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().KeywordType() == lexer::TokenType::KE… in ParseAssignmentExpression()
907 if (Extension() == ScriptExtension::TS) { in ParseNewExpression()
[all …]
DparserImpl.cpp115 if (Extension() == ScriptExtension::TS) { in InitLexer()
153 if (Extension() == ScriptExtension::TS) { in Parse()
1713 …(Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::KEYW_THIS)) { in IsTsFunctionType()
1978 if (!((Extension() == ScriptExtension::JS && nextCp != LEX_CHAR_LEFT_PAREN) || in ParseModifiers()
1979 …(Extension() == ScriptExtension::TS && nextCp != LEX_CHAR_EQUALS && nextCp != LEX_CHAR_SEMICOLON && in ParseModifiers()
2143 if ((Extension() == ScriptExtension::JS && nextCp != LEX_CHAR_LEFT_PAREN) || in ParseClassKeyModifiers()
2144 (Extension() == ScriptExtension::TS && in ParseClassKeyModifiers()
2209 } else if (Extension() == ScriptExtension::TS) { in ValidateClassKey()
2256 …if (Extension() == ScriptExtension::TS && lexer_->GetToken().Type() == lexer::TokenType::LITERAL_I… in ParseClassKey()
2294 if (Extension() == ScriptExtension::TS) { in ParseClassKey()
[all …]
Dcommonjs.cpp91 … functionContext.Flags(), false, Extension() == ScriptExtension::TS); in ParseCommonjs()
DparserImpl.h184 ScriptExtension Extension() const;
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.h284 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
299 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
313 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
328 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
Dbinder.cpp424 if (Program()->Extension() == ScriptExtension::TS) { in BuildVarDeclaratorId()
667 if (Program()->Extension() == ScriptExtension::TS) { in ResolveReference()
681 if (Program()->Extension() == ScriptExtension::TS) { in ResolveReference()
/arkcompiler/ets_frontend/es2panda/parser/program/
Dprogram.h63 ScriptExtension Extension() const in Extension() function
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.h274 ScriptExtension Extension() const in Extension() function
276 return program_->Extension(); in Extension()
Dtransformer.cpp80 if (Extension() == ScriptExtension::TS) { in Transform()
87 ASSERT(Extension() == ScriptExtension::TS); in TransformFromTS()
1452 ir::ScriptFunctionFlags::NONE, false, Extension() == ScriptExtension::TS); in CreateCallExpressionForTsModule()
1589 ir::ScriptFunctionFlags::NONE, false, Extension() == ScriptExtension::TS); in CreateCallExpressionForTsEnum()
/arkcompiler/toolchain/build/toolchain/
Dtoolchain.gni54 # Extension for shared library files (including leading dot).
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.cpp1197 if (parserContext_->GetProgram()->Extension() == ScriptExtension::JS) { in CheckEnumKeyword()
1226 …if (parserContext_->GetProgram()->Extension() == ScriptExtension::TS && keywordType <= TokenType::… in CheckFutureReservedKeyword()
/arkcompiler/runtime_core/ldscripts/
Dpanda_test_asan.ld341 /* DWARF Extension. */