Ejemplo n.º 1
0
 /// <summary>
 /// Push a token onto the builder
 /// </summary>
 /// <remarks>Avoid creating the range just to call this method</remarks>
 /// <param name="range">The range, cannot span multiple lines</param>
 /// <param name="tokenType"></param>
 /// <param name="tokenModifiers"></param>
 public void Push(Range range, SemanticTokenType?tokenType, IEnumerable <SemanticTokenModifier> tokenModifiers) => Push(
     range, _legend.GetTokenTypeIdentity(tokenType), _legend.GetTokenModifiersIdentity(tokenModifiers)
     );
Ejemplo n.º 2
0
 /// <summary>
 /// Push a token onto the builder
 /// </summary>
 /// <remarks>Avoid creating the range just to call this method</remarks>
 /// <param name="range">The range, cannot span multiple lines</param>
 /// <param name="tokenType"></param>
 /// <param name="tokenModifiers"></param>
 public void Push(Range range, SemanticTokenType?tokenType, params SemanticTokenModifier[] tokenModifiers) => Push(
     range, _legend.GetTokenTypeIdentity(tokenType), _legend.GetTokenModifiersIdentity(tokenModifiers)
     );
Ejemplo n.º 3
0
 /// <summary>
 /// Push a token onto the builder
 /// </summary>
 /// <param name="line"></param>
 /// <param name="char"></param>
 /// <param name="length"></param>
 /// <param name="tokenType"></param>
 /// <param name="tokenModifiers"></param>
 public void Push(int line, int @char, int length, SemanticTokenType?tokenType, IEnumerable <SemanticTokenModifier> tokenModifiers) => Push(
     line, @char, length, _legend.GetTokenTypeIdentity(tokenType), _legend.GetTokenModifiersIdentity(tokenModifiers)
     );
Ejemplo n.º 4
0
 /// <summary>
 /// Push a token onto the builder
 /// </summary>
 /// <param name="line"></param>
 /// <param name="char"></param>
 /// <param name="length"></param>
 /// <param name="tokenType"></param>
 /// <param name="tokenModifiers"></param>
 public void Push(int line, int @char, int length, SemanticTokenType?tokenType, params SemanticTokenModifier[] tokenModifiers) => Push(
     line, @char, length, _legend.GetTokenTypeIdentity(tokenType), _legend.GetTokenModifiersIdentity(tokenModifiers)
     );