documentationOfParameter function
Implementation
Future<String> documentationOfParameter(
ParameterElement parameter,
BuildStep buildStep,
) async {
final builder = StringBuffer();
final astNode = await tryGetAstNodeForElement(parameter, buildStep);
for (Token? token = astNode.beginToken.precedingComments;
token != null;
token = token.next) {
builder.writeln(token);
}
return builder.toString();
}