Home
last modified time | relevance | path

Searched full:sourcerange (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/lexer/token/
DsourceLocation.h45 class SourceRange {
47 explicit SourceRange() noexcept = default;
48 SourceRange(SourcePosition s, SourcePosition e) noexcept : start(s), end(e) {} in SourceRange() function
49 DEFAULT_COPY_SEMANTIC(SourceRange);
50 DEFAULT_MOVE_SEMANTIC(SourceRange);
51 ~SourceRange() = default;
Dtoken.h78 const SourceRange &Loc() const in DEFINE_BITOPS()
151 SourceRange loc_ {}; in DEFINE_BITOPS()
/arkcompiler/ets_frontend/ets2panda/lexer/token/
DsourceLocation.h59 class SourceRange {
61 explicit SourceRange() noexcept = default;
62 SourceRange(SourcePosition s, SourcePosition e) noexcept : start(s), end(e) {} in SourceRange() function
63 DEFAULT_COPY_SEMANTIC(SourceRange);
64 DEFAULT_MOVE_SEMANTIC(SourceRange);
65 ~SourceRange() = default;
Dtoken.h97 const SourceRange &Loc() const
158 SourceRange loc_ {};
/arkcompiler/ets_frontend/ets2panda/test/unit/plugin/
Dplugin_proceed_to_state_log_diagnostic_with_suggestion.cpp80 …strcmp(suggestion->Message().data(), "origin a") != 0 || suggestion->SourceRange()->start.line != … in main()
81 …suggestion->SourceRange()->end.line != endLine || suggestion->SourceRange()->start.index != startI… in main()
82 suggestion->SourceRange()->end.index != endIndex) { in main()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DpromiseVoid.h35 void SetRangeRecursively(ir::TypeNode *node, const lexer::SourceRange &loc);
36 ir::TypeNode *CreatePromiseVoidType(public_lib::Context *ctx, const lexer::SourceRange &loc);
DpromiseVoid.cpp43 void PromiseVoidInferencePhase::SetRangeRecursively(ir::TypeNode *node, const lexer::SourceRange &l… in SetRangeRecursively()
55 …eVoidInferencePhase::CreatePromiseVoidType(public_lib::Context *ctx, const lexer::SourceRange &loc) in CreatePromiseVoidType()
118 auto genTypeLocation = [](ir::ScriptFunction *function) -> lexer::SourceRange { in PerformForModule()
/arkcompiler/ets_frontend/ets2panda/util/
Ddiagnostic.h177 const char *substitutionCode, const lexer::SourceRange *range);
179 const lexer::SourceRange *SourceRange() const in SourceRange() function
200 const lexer::SourceRange *range_;
Ddiagnostic.cpp225 const char *substitutionCode, const lexer::SourceRange *range) in Suggestion()
/arkcompiler/ets_frontend/ets2panda/lsp/include/formatting/
Dformatting_context.h33 struct RangeWithKind : lexer::SourceRange {
41 : lexer::SourceRange(startPos, endPos), kind_(nodeKind) in SourceRange() function
/arkcompiler/ets_frontend/es2panda/ir/
DastNode.h222 void SetRange(const lexer::SourceRange &loc) in AST_NODE_REINTERPRET_MAPPING()
247 const lexer::SourceRange &Range() const in AST_NODE_REINTERPRET_MAPPING()
305 lexer::SourceRange range_ {}; in AST_NODE_REINTERPRET_MAPPING()
DastDump.h198 void SerializeLoc(const lexer::SourceRange &loc);
DastDump.cpp231 void AstDumper::SerializeLoc(const lexer::SourceRange &loc) in SerializeLoc()
/arkcompiler/ets_frontend/ets2panda/lsp/src/register_code_fix/
Dui_plugin_suggest.cpp40 auto sourceStart = suggestion->SourceRange()->start.index; in GetTextChangesFromSuggestions()
41 auto sourceEnd = suggestion->SourceRange()->end.index; in GetTextChangesFromSuggestions()
/arkcompiler/ets_frontend/ets2panda/lsp/include/
Dcreate_type_help_items.h58 SignatureHelpItems CreateTypeHelpItems(const ir::AstNode *node, lexer::SourceRange location, TextSp…
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/
Dutil.h35 void SetSourceRangesRecursively(ir::AstNode *node, const lexer::SourceRange &range);
Dutil.cpp58 void SetSourceRangesRecursively(ir::AstNode *node, const lexer::SourceRange &range) in SetSourceRangesRecursively()
67 auto const isDummyLoc = [](lexer::SourceRange const &range, ir::AstNode *ast) { in RefineSourceRanges()
/arkcompiler/ets_frontend/ets2panda/lsp/src/
Dinternal_api.cpp120 FileDiagnostic CreateFileDiagnostic(es2panda_AstNode *node, lexer::SourceRange span, Diagnostic dia… in CreateFileDiagnostic()
132 lexer::SourceRange GetErrorRangeForNode(ir::AstNode *node) in GetErrorRangeForNode()
134 return lexer::SourceRange(node->Start(), node->End()); in GetErrorRangeForNode()
540 lexer::SourceRange sourceRange; in CreateDiagnosticForError() local
549 sourceRange = touchingToken->Range(); in CreateDiagnosticForError()
550 sourceStartLocation = index.GetLocation(sourceRange.start); in CreateDiagnosticForError()
551 sourceEndLocation = index.GetLocation(sourceRange.end); in CreateDiagnosticForError()
Dcreate_type_help_items.cpp23 SignatureHelpItems CreateTypeHelpItems(const ir::AstNode *node, lexer::SourceRange location, TextSp… in CreateTypeHelpItems()
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
DdebugInfoDeserializer.cpp239 compiler::SetSourceRangesRecursively(varDecl, lexer::SourceRange()); in CreateLocalVarDecl()
254 compiler::SetSourceRangesRecursively(varUpdate, lexer::SourceRange()); in CreateLocalVarDecl()
/arkcompiler/ets_frontend/ets2panda/test/unit/lsp/
Dlsp_rename_test.cpp117 auto srcRange = ark::es2panda::lexer::SourceRange(srcPositionStart, srcPositionEnd); in TEST_F()
139 auto srcRange = ark::es2panda::lexer::SourceRange(srcPositionStart, srcPositionEnd); in TEST_F()
164 auto srcRange = ark::es2panda::lexer::SourceRange(srcPositionStart, srcPositionEnd); in TEST_F()
276 auto srcRange = ark::es2panda::lexer::SourceRange(srcPositionStart, srcPositionEnd); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/parser/
DparserImpl.h215 ir::Statement *AllocBrokenStatement(const lexer::SourceRange &range);
228 ir::Identifier *AllocBrokenExpression(const lexer::SourceRange &range);
230 ir::TypeNode *AllocBrokenType(const lexer::SourceRange &range);
533 …ing ClassBody = std::tuple<ir::MethodDefinition *, ArenaVector<ir::AstNode *>, lexer::SourceRange>;
/arkcompiler/ets_frontend/ets2panda/ir/
DastNode.h266 void SetRange(const lexer::SourceRange &loc) noexcept in AST_NODE_REINTERPRET_MAPPING()
291 [[nodiscard]] const lexer::SourceRange &Range() const noexcept in AST_NODE_REINTERPRET_MAPPING()
570 lexer::SourceRange range_ {}; in AST_NODE_REINTERPRET_MAPPING()
DastDump.h240 void SerializeLoc(const lexer::SourceRange &loc);
DastDump.cpp241 void AstDumper::SerializeLoc(const lexer::SourceRange &loc) in SerializeLoc()

12