label colours
This commit is contained in:
@@ -273,8 +273,10 @@ public static class SymbolInfoComponents
|
|||||||
if (docComment.ParameterNames.Length is not 0)
|
if (docComment.ParameterNames.Length is not 0)
|
||||||
{
|
{
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
|
label.PushColor(CachedColors.Gray);
|
||||||
label.AddText("Params: ");
|
label.AddText("Params: ");
|
||||||
label.Pop();
|
label.Pop();
|
||||||
|
label.Pop();
|
||||||
foreach (var (index, parameterName) in docComment.ParameterNames.Index())
|
foreach (var (index, parameterName) in docComment.ParameterNames.Index())
|
||||||
{
|
{
|
||||||
var parameterText = docComment.GetParameterText(parameterName);
|
var parameterText = docComment.GetParameterText(parameterName);
|
||||||
@@ -297,8 +299,10 @@ public static class SymbolInfoComponents
|
|||||||
if (docComment.TypeParameterNames.Length is not 0)
|
if (docComment.TypeParameterNames.Length is not 0)
|
||||||
{
|
{
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
|
label.PushColor(CachedColors.Gray);
|
||||||
label.AddText("Type Params: ");
|
label.AddText("Type Params: ");
|
||||||
label.Pop();
|
label.Pop();
|
||||||
|
label.Pop();
|
||||||
foreach (var (index, typeParameterName) in docComment.TypeParameterNames.Index())
|
foreach (var (index, typeParameterName) in docComment.TypeParameterNames.Index())
|
||||||
{
|
{
|
||||||
var typeParameterText = docComment.GetTypeParameterText(typeParameterName);
|
var typeParameterText = docComment.GetTypeParameterText(typeParameterName);
|
||||||
@@ -320,8 +324,10 @@ public static class SymbolInfoComponents
|
|||||||
if (docComment.ReturnsText is not null)
|
if (docComment.ReturnsText is not null)
|
||||||
{
|
{
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
|
label.PushColor(CachedColors.Gray);
|
||||||
label.AddText("Returns: ");
|
label.AddText("Returns: ");
|
||||||
label.Pop();
|
label.Pop();
|
||||||
|
label.Pop();
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
label.AddText(docComment.ReturnsText);
|
label.AddText(docComment.ReturnsText);
|
||||||
label.Pop(); // cell
|
label.Pop(); // cell
|
||||||
@@ -330,8 +336,10 @@ public static class SymbolInfoComponents
|
|||||||
if (docComment.ExceptionTypes.Length is not 0)
|
if (docComment.ExceptionTypes.Length is not 0)
|
||||||
{
|
{
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
|
label.PushColor(CachedColors.Gray);
|
||||||
label.AddText("Exceptions: ");
|
label.AddText("Exceptions: ");
|
||||||
label.Pop();
|
label.Pop();
|
||||||
|
label.Pop();
|
||||||
foreach (var (index, exceptionTypeName) in docComment.ExceptionTypes.Index())
|
foreach (var (index, exceptionTypeName) in docComment.ExceptionTypes.Index())
|
||||||
{
|
{
|
||||||
var exceptionText = docComment.GetExceptionTexts(exceptionTypeName).FirstOrDefault();
|
var exceptionText = docComment.GetExceptionTexts(exceptionTypeName).FirstOrDefault();
|
||||||
@@ -354,8 +362,10 @@ public static class SymbolInfoComponents
|
|||||||
if (docComment.RemarksText is not null)
|
if (docComment.RemarksText is not null)
|
||||||
{
|
{
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
|
label.PushColor(CachedColors.Gray);
|
||||||
label.AddText("Remarks: ");
|
label.AddText("Remarks: ");
|
||||||
label.Pop();
|
label.Pop();
|
||||||
|
label.Pop();
|
||||||
label.PushCell();
|
label.PushCell();
|
||||||
label.AddText(docComment.RemarksText);
|
label.AddText(docComment.RemarksText);
|
||||||
label.Pop(); // cell
|
label.Pop(); // cell
|
||||||
|
|||||||
Reference in New Issue
Block a user