Home
last modified time | relevance | path

Searched refs:col (Results 1 - 25 of 29) sorted by relevance

12

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
H A Dutil_astchecker.py43 checks: dict, line: int, col: int, error_file: str = '') -> None:
46 self.col = col
52 return f'TestCase({self.name}, {self.line}:{self.col}, {self.test_type}, {self.checks}, {self.error_file})'
71 pattern: str, line: int, col: int, error_file: str = '') -> UtilASTChecker._TestCase:
78 return UtilASTChecker._TestCase(name, pattern_type, pattern_parsed, line, col, error_file=error_file)
87 col = match_idx - line_start_index + 1
89 return line, col
108 expected_error = f'{test.checks["error"]}', f'[{file_name}:{test.line}:{test.col}]'
128 line, col
[all...]
/arkcompiler/ets_frontend/ets2panda/lexer/token/
H A DsourceLocation.cpp76 size_t col = 0; variable
80 return SourceLocation(line + 1, col + 1);
92 col += diff;
97 col += range.cnt;
100 return SourceLocation(line + 1, col + 1);
H A DsourceLocation.h58 explicit SourceLocation(size_t l, size_t c) noexcept : line(l), col(c) {} in col() function in ark::es2panda::lexer::SourceLocation
65 size_t col {};
/arkcompiler/ets_frontend/es2panda/lexer/token/
H A DsourceLocation.cpp85 size_t col = 0; variable
92 col += (diff / range.byteSize) ;
97 col += range.cnt;
100 return SourceLocation(line + 1, col + 1);
H A DsourceLocation.h60 explicit SourceLocation(size_t l, size_t c) noexcept : line(l), col(c) {} in col() function in panda::es2panda::lexer::SourceLocation
66 size_t col {};
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dsource_map.cpp198 MappingInfo SourceMap::Find(int32_t row, int32_t col, const SourceMapData& targetMap, bool& isReplaces) in Find() argument
200 if (row < 1 || col < 1) { in Find()
201 LOG_ECMA(ERROR) << "SourceMap find failed, line: " << row << ", column: " << col; in Find() local
208 col--; in Find()
215 return MappingInfo { row + 1, col + 1}; in Find()
219 if ((targetMap.afterPos_[mid].afterRow == row && targetMap.afterPos_[mid].afterColumn > col) || in Find()
395 if (mapInfo.row == 0 || mapInfo.col == 0) { in GetLineAndColumnNumbers()
399 column = mapInfo.col; in GetLineAndColumnNumbers()
H A Dsource_map.h45 int32_t col = 0; member
84 MappingInfo Find(int32_t row, int32_t col, const SourceMapData& targetMap, bool& isReplaces);
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/
H A Dsource_map_test.cpp170 MappingInfo Find(int32_t row, int32_t col, const SourceMapData &targetMap, bool& isReplaces) in Find() argument
172 return sourceMap.Find(row, col, targetMap, isReplaces); in Find()
390 EXPECT_EQ(mappingInfo.col, 0); in HWTEST_F_L0()
394 EXPECT_EQ(mappingInfo.col, 0); in HWTEST_F_L0()
409 EXPECT_EQ(mappingInfo.col, 2); in HWTEST_F_L0()
414 EXPECT_EQ(mappingInfo.col, 2); in HWTEST_F_L0()
419 EXPECT_EQ(mappingInfo.col, 2); in HWTEST_F_L0()
/arkcompiler/ets_frontend/ets2panda/util/
H A DerrorHandler.cpp25 throw Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}; in ThrowSyntaxError()
/arkcompiler/ets_frontend/ets2panda/checker/
H A Dchecker.cpp88 throw Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}; in ThrowTypeError()
101 errorLogger_.WriteLog(Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}); in LogTypeError()
112 std::cout << "Warning: " << message << " [" << fileName << ":" << loc.line << ":" << loc.col << "]" << std::endl; in Warning()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DdefaultParameterLowering.h31 throw Error {ErrorType::SYNTAX, program->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}; in ThrowSyntaxError()
/arkcompiler/ets_frontend/es2panda/util/
H A Dconcurrent.cpp45 auto column = (const_cast<lexer::LineIndex &>(lineIndex)).GetLocation(expr->Range().start).col - 1; in ThrowInvalidConcurrentFunction()
/arkcompiler/ets_frontend/es2panda/typescript/
H A Dchecker.cpp82 throw Error {ErrorType::TYPE, message, loc.line, loc.col}; in ThrowTypeError()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp96 throw Error(ErrorType::SYNTAX, ss.str(), loc.line, loc.col); in ThrowRedeclaration()
106 throw Error(ErrorType::SYNTAX, ss.str(), loc.line, loc.col); in ThrowUndeclaredExport()
116 throw Error(ErrorType::SYNTAX, ss.str(), loc.line, loc.col); in ThrowInvalidDstrTarget()
126 throw Error(ErrorType::SYNTAX, ss.str(), loc.line, loc.col); in ThrowInvalidAnnotationDeclaration()
1143 throw Error{ErrorType::SYNTAX, "Use private property before declaration", loc.line, loc.col}; in CheckPrivateDeclaration()
/arkcompiler/runtime_core/libpandafile/tests/
H A Ddebug_info_extractor_test.cpp393 for (auto const &col : cnt) { in HWTEST_F()
394 EXPECT_EQ(col.column, i++); in HWTEST_F()
/arkcompiler/runtime_core/static_core/libpandafile/tests/
H A Ddebug_info_extractor_test.cpp414 for (auto const &col : cnt) { in TEST_F()
415 EXPECT_EQ(col.column, i++); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DetsWarningAnalyzer.cpp392 location.line, location.col); in ETSThrowWarning()
397 << location.col << "]" << std::endl; in ETSThrowWarning()
/arkcompiler/ets_frontend/ets2panda/ir/
H A DastDump.cpp263 SerializeNumber(loc.col); in SerializeSourcePosition()
/arkcompiler/ets_frontend/es2panda/ir/
H A DastDump.cpp259 SerializeNumber(loc.col); in SerializeSourcePosition()
/arkcompiler/ets_frontend/ets2panda/declgen_ets2ts/
H A DdeclgenEts2Ts.cpp112 loc.line, loc.col}; in ThrowError()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp136 throw Error(ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), msg, loc.line, loc.col); in ThrowError()
/arkcompiler/ets_frontend/ets2panda/lexer/
H A Dlexer.cpp219 loc.col); in ThrowError()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DparserImpl.cpp1258 throw Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}; in ThrowSyntaxError()
1296 Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}); in LogSyntaxError()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
H A Demitter.cpp201 columnNum = astNode ? (GetLineIndex().GetLocation(astNode->Range().end).col - OFFSET_COL) : INVALID_COL; in UpdateForReturnIns()
204 columnNum = astNode ? (GetLineIndex().GetLocation(astNode->Range().start).col - OFFSET_COL) : INVALID_COL; in UpdateForReturnIns()
/arkcompiler/ets_frontend/es2panda/lexer/
H A Dlexer.cpp217 throw es2panda::Error(es2panda::ErrorType::SYNTAX, message, loc.line, loc.col); in ThrowError()

Completed in 19 milliseconds

12