Example #1
0
 /// <summary>
 ///     Converts the <see cref="LSLVectorComponent" /> into a name reference that could be used on the right side of the
 ///     dot operator in LSL.
 /// </summary>
 /// <param name="component">The component to convert to a string.</param>
 /// <returns>The lowercase name of the component from the enum.</returns>
 public static string ToComponentName(this LSLVectorComponent component)
 {
     return(component.ToString().ToLower());
 }
Example #2
0
 void ILSLSyntaxErrorListener.InvalidVectorContent(LSLSourceCodeRange location, LSLVectorComponent component,
                                                   ILSLReadOnlyExprNode invalidExpressionContent)
 {
     _errorActionQueue.Enqueue(location.StartIndex,
                               () => SyntaxErrorListener.InvalidVectorContent(location, component, invalidExpressionContent));
 }