Unverified Commit 14fb6435 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Add source line to snippet metadata file (#26274)

* Add source line to snippet metadata

* Parse sourceLine as an int
parent 6d6f5f65
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment