Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-9445] InitializerDeclSyntax.initKeyword position is incorrect #440

Closed
swift-ci opened this issue Dec 8, 2018 · 0 comments
Closed

[SR-9445] InitializerDeclSyntax.initKeyword position is incorrect #440

swift-ci opened this issue Dec 8, 2018 · 0 comments
Labels
bug

Comments

@swift-ci
Copy link
Contributor

@swift-ci swift-ci commented Dec 8, 2018

Previous ID SR-9445
Radar None
Original Reporter Leitch (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

swift-syntax:

0.40200.0

swiftc:

Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0

Xcode:

10.1, Build version 10B61

macOS:

10.14.1

Additional Detail from JIRA
Votes 0
Component/s SwiftSyntax
Labels Bug
Assignee None
Priority Medium

md5: 12e54c370c6a569e89cec387a15cfe5e

Issue Description:

Given the following code:

class MyFunc {
    init(param: String) {}
}

The position of `initKeyword` returns the incorrect values:

(lldb) po syntax.initKeyword.position
 AbsolutePosition
  - utf8Offset : 14
  - line : 1
  - column : 15

Expected values are:

line: 2

column: 5

offset: 19

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug
Projects
None yet
Development

No branches or pull requests

1 participant