SourceKitten icon indicating copy to clipboard operation
SourceKitten copied to clipboard

Getting information related to let and var types of variables.

Open prabodhprakash opened this issue 8 years ago • 6 comments

If I have two variables in my class

let i: Int = 8
var j: Int = 8

By running structure command, is there a way to know that i cannot be set while j can be set? Or, is there a different command to support this information?

prabodhprakash avatar Jul 06 '17 11:07 prabodhprakash

@jpsim - please could you help with this.

prabodhprakash avatar Jul 07 '17 08:07 prabodhprakash

The cursor info request provides this information

jpsim avatar Jul 07 '17 14:07 jpsim

Thank-you @jpsim . Is there a way to get the return type of a function also.

prabodhprakash avatar Jul 11 '17 06:07 prabodhprakash

Also cursor info.

jpsim avatar Jul 11 '17 16:07 jpsim

hi , I have another question;

var j: Int = 8

how can i get '8' ? can't not find on Request.editorOpen(file: file).send() response?

michaeldong avatar Jan 24 '18 01:01 michaeldong

hi , I have another question;

var j: Int = 8

how can i get '8' ? can't not find on Request.editorOpen(file: file).send() response?

did you find a solution for it ?

iMostfa avatar Aug 04 '20 18:08 iMostfa