Add source line to snippet metadata file (#26274)
* Add source line to snippet metadata * Parse sourceLine as an int
This commit is contained in:
@@ -146,6 +146,9 @@ void main(List<String> argList) {
|
||||
output: args[_kOutputOption] != null ? File(args[_kOutputOption]) : null,
|
||||
metadata: <String, Object>{
|
||||
'sourcePath': environment['SOURCE_PATH'],
|
||||
'sourceLine': environment['SOURCE_LINE'] != null
|
||||
? int.tryParse(environment['SOURCE_LINE'])
|
||||
: null,
|
||||
'package': packageName,
|
||||
'library': libraryName,
|
||||
'element': elementName,
|
||||
|
||||
Reference in New Issue
Block a user