void ILSLSyntaxWarningListener.UseOfDeprecatedLibraryConstant(LSLSourceCodeRange location, ILSLConstantSignature constantSignature) { _warningActionQueue.Enqueue(location.StartIndex, () => SyntaxWarningListener.UseOfDeprecatedLibraryConstant(location, constantSignature)); }
/// <summary> /// A library constant that was marked as being deprecated was used. /// </summary> /// <param name="location">The location in source code where the deprecated constant was referenced.</param> /// <param name="constantSignature">The library constant signature of the deprecated constant that was referenced.</param> public virtual void UseOfDeprecatedLibraryConstant(LSLSourceCodeRange location, ILSLConstantSignature constantSignature) { OnWarning(location, string.Format( "The library constant \"{0}\" is deprecated, it is recommended you use an alternative or remove it.", constantSignature.Name)); }
void ILSLSyntaxErrorListener.TupleComponentAccessOnLibraryConstant(LSLSourceCodeRange location, ILSLVariableNode libraryConstantReferenceNode, ILSLConstantSignature libraryConstantSignature, string accessedMember) { _errorActionQueue.Enqueue(location.StartIndex, () => SyntaxErrorListener.TupleComponentAccessOnLibraryConstant(location, libraryConstantReferenceNode, libraryConstantSignature, accessedMember)); }
void ILSLSyntaxErrorListener.RedefinedStandardLibraryConstant(LSLSourceCodeRange location, LSLType redefinitionType, ILSLConstantSignature originalSignature) { _errorActionQueue.Enqueue(location.StartIndex, () => SyntaxErrorListener.RedefinedStandardLibraryConstant(location, redefinitionType, originalSignature)); }
/// <summary> /// Construct the <see cref="ILSLConstantSignature" /> by cloning another one. /// </summary> /// <param name="other">The other <see cref="ILSLConstantSignature" />.</param> /// <exception cref="ArgumentNullException"><paramref name="other" /> is <c>null</c>.</exception> public LSLConstantSignature(ILSLConstantSignature other) { if (other == null) { throw new ArgumentNullException("other"); } _type = other.Type; _valueString = other.ValueString; }