mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add source line to snippet metadata file (#26274)
* Add source line to snippet metadata * Parse sourceLine as an int
This commit is contained in:
parent
6d6f5f6512
commit
14fb64353c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user