Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1033993 // LineAndColumn

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (4665L) is out of date.

// Both lines and columns are numbered from 1
srecord LineAndColumn(int line, int col) {
  // get text of a line. may return null if no text available
  swappable S getLineText(int line) { null; }
  
  toString { ret "Line " + n2(line) + ", col " + n2(col); }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033993
Snippet name: LineAndColumn
Eternal ID of this version: #1033993/4
Text MD5: 660ad4d881c34d77a290071dbdc7b18c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 17:26:16
Source code size: 267 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 249
Version history: 3 change(s)
Referenced in: [show references]