C# Class ShaderTools.Hlsl.Diagnostics.DiagnosticExtensions

Afficher le fichier Open project: tgjones/HlslTools

Méthodes publiques

Méthode Description
GetMessage ( this diagnosticId ) : string
Report ( this diagnostics, TextSpan textSpan, DiagnosticId diagnosticId ) : void
ReportAmbiguousBinaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType ) : void
ReportAmbiguousField ( this diagnostics, SyntaxToken name ) : void
ReportAmbiguousInvocation ( this diagnostics, TextSpan span, InvocableSymbol symbol1, InvocableSymbol symbol2, IReadOnlyList argumentTypes ) : void
ReportAmbiguousName ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
ReportAmbiguousNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax syntax, IReadOnlyList candidates ) : void
ReportAmbiguousType ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
ReportAmbiguousUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
ReportCannotApplyBinaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType ) : void
ReportCannotApplyUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
ReportCannotConvert ( this diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol targetType ) : void
ReportFunctionMissingImplementation ( this diagnostics, FunctionInvocationExpressionSyntax syntax ) : void
ReportIllegalInputCharacter ( this diagnostics, TextSpan textSpan, char character ) : void
ReportImplicitTruncation ( this diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol destinationType ) : void
ReportInvalidHex ( this diagnostics, TextSpan textSpan, string tokenText ) : void
ReportInvalidInteger ( this diagnostics, TextSpan textSpan, string tokenText ) : void
ReportInvalidOctal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
ReportInvalidReal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
ReportInvocationRequiresParenthesis ( this diagnostics, SyntaxToken name ) : void
ReportLoopControlVariableConflict ( this diagnostics, VariableDeclaratorSyntax syntax ) : void
ReportMethodMissingImplementation ( this diagnostics, MethodInvocationExpressionSyntax syntax ) : void
ReportNoVoidHere ( this diagnostics, TextSpan textSpan ) : void
ReportNoVoidParameter ( this diagnostics, TextSpan textSpan ) : void
ReportNumberTooLarge ( this diagnostics, TextSpan textSpan, string tokenText ) : void
ReportSymbolRedefined ( this diagnostics, TextSpan span, Symbol symbol ) : void
ReportTokenExpected ( this diagnostics, TextSpan span, SyntaxToken actual, SyntaxKind expected ) : void
ReportTokenUnexpected ( this diagnostics, TextSpan span, SyntaxToken actual ) : void
ReportUndeclaredField ( this diagnostics, FieldAccessExpressionSyntax node, TypeSymbol type ) : void
ReportUndeclaredFunction ( this diagnostics, FunctionInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
ReportUndeclaredFunctionInNamespaceOrClass ( this diagnostics, QualifiedDeclarationNameSyntax name ) : void
ReportUndeclaredIndexer ( this diagnostics, ElementAccessExpressionSyntax node, TypeSymbol declaringType, IEnumerable argumentTypes ) : void
ReportUndeclaredMethod ( this diagnostics, MethodInvocationExpressionSyntax node, TypeSymbol declaringType, IEnumerable argumentTypes ) : void
ReportUndeclaredNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax node ) : void
ReportUndeclaredNumericConstructor ( this diagnostics, NumericConstructorInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
ReportUndeclaredType ( this diagnostics, SyntaxNode type ) : void
ReportUnterminatedComment ( this diagnostics, TextSpan textSpan ) : void
ReportUnterminatedString ( this diagnostics, TextSpan textSpan ) : void
ReportVariableNotDeclared ( this diagnostics, SyntaxToken name ) : void

Method Details

GetMessage() public static méthode

public static GetMessage ( this diagnosticId ) : string
diagnosticId this
Résultat string

Report() public static méthode

public static Report ( this diagnostics, TextSpan textSpan, DiagnosticId diagnosticId ) : void
diagnostics this
textSpan TextSpan
diagnosticId DiagnosticId
Résultat void

ReportAmbiguousBinaryOperator() public static méthode

public static ReportAmbiguousBinaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType ) : void
diagnostics this
operatorToken SyntaxToken
leftType ShaderTools.Hlsl.Symbols.TypeSymbol
rightType ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportAmbiguousField() public static méthode

public static ReportAmbiguousField ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
Résultat void

ReportAmbiguousInvocation() public static méthode

public static ReportAmbiguousInvocation ( this diagnostics, TextSpan span, InvocableSymbol symbol1, InvocableSymbol symbol2, IReadOnlyList argumentTypes ) : void
diagnostics this
span TextSpan
symbol1 ShaderTools.Hlsl.Symbols.InvocableSymbol
symbol2 ShaderTools.Hlsl.Symbols.InvocableSymbol
argumentTypes IReadOnlyList
Résultat void

ReportAmbiguousName() public static méthode

public static ReportAmbiguousName ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
diagnostics this
name SyntaxToken
candidates IReadOnlyList
Résultat void

ReportAmbiguousNamespaceOrType() public static méthode

public static ReportAmbiguousNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax syntax, IReadOnlyList candidates ) : void
diagnostics this
syntax QualifiedDeclarationNameSyntax
candidates IReadOnlyList
Résultat void

ReportAmbiguousType() public static méthode

public static ReportAmbiguousType ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
diagnostics this
name SyntaxToken
candidates IReadOnlyList
Résultat void

ReportAmbiguousUnaryOperator() public static méthode

public static ReportAmbiguousUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
diagnostics this
operatorToken SyntaxToken
type ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportCannotApplyBinaryOperator() public static méthode

public static ReportCannotApplyBinaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType ) : void
diagnostics this
operatorToken SyntaxToken
leftType ShaderTools.Hlsl.Symbols.TypeSymbol
rightType ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportCannotApplyUnaryOperator() public static méthode

public static ReportCannotApplyUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
diagnostics this
operatorToken SyntaxToken
type ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportCannotConvert() public static méthode

public static ReportCannotConvert ( this diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol targetType ) : void
diagnostics this
span TextSpan
sourceType ShaderTools.Hlsl.Symbols.TypeSymbol
targetType ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportFunctionMissingImplementation() public static méthode

public static ReportFunctionMissingImplementation ( this diagnostics, FunctionInvocationExpressionSyntax syntax ) : void
diagnostics this
syntax FunctionInvocationExpressionSyntax
Résultat void

ReportIllegalInputCharacter() public static méthode

public static ReportIllegalInputCharacter ( this diagnostics, TextSpan textSpan, char character ) : void
diagnostics this
textSpan TextSpan
character char
Résultat void

ReportImplicitTruncation() public static méthode

public static ReportImplicitTruncation ( this diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol destinationType ) : void
diagnostics this
span TextSpan
sourceType ShaderTools.Hlsl.Symbols.TypeSymbol
destinationType ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportInvalidHex() public static méthode

public static ReportInvalidHex ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
Résultat void

ReportInvalidInteger() public static méthode

public static ReportInvalidInteger ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
Résultat void

ReportInvalidOctal() public static méthode

public static ReportInvalidOctal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
Résultat void

ReportInvalidReal() public static méthode

public static ReportInvalidReal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
Résultat void

ReportInvocationRequiresParenthesis() public static méthode

public static ReportInvocationRequiresParenthesis ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
Résultat void

ReportLoopControlVariableConflict() public static méthode

public static ReportLoopControlVariableConflict ( this diagnostics, VariableDeclaratorSyntax syntax ) : void
diagnostics this
syntax VariableDeclaratorSyntax
Résultat void

ReportMethodMissingImplementation() public static méthode

public static ReportMethodMissingImplementation ( this diagnostics, MethodInvocationExpressionSyntax syntax ) : void
diagnostics this
syntax MethodInvocationExpressionSyntax
Résultat void

ReportNoVoidHere() public static méthode

public static ReportNoVoidHere ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
Résultat void

ReportNoVoidParameter() public static méthode

public static ReportNoVoidParameter ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
Résultat void

ReportNumberTooLarge() public static méthode

public static ReportNumberTooLarge ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
Résultat void

ReportSymbolRedefined() public static méthode

public static ReportSymbolRedefined ( this diagnostics, TextSpan span, Symbol symbol ) : void
diagnostics this
span TextSpan
symbol ShaderTools.Hlsl.Symbols.Symbol
Résultat void

ReportTokenExpected() public static méthode

public static ReportTokenExpected ( this diagnostics, TextSpan span, SyntaxToken actual, SyntaxKind expected ) : void
diagnostics this
span TextSpan
actual SyntaxToken
expected SyntaxKind
Résultat void

ReportTokenUnexpected() public static méthode

public static ReportTokenUnexpected ( this diagnostics, TextSpan span, SyntaxToken actual ) : void
diagnostics this
span TextSpan
actual SyntaxToken
Résultat void

ReportUndeclaredField() public static méthode

public static ReportUndeclaredField ( this diagnostics, FieldAccessExpressionSyntax node, TypeSymbol type ) : void
diagnostics this
node FieldAccessExpressionSyntax
type ShaderTools.Hlsl.Symbols.TypeSymbol
Résultat void

ReportUndeclaredFunction() public static méthode

public static ReportUndeclaredFunction ( this diagnostics, FunctionInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
diagnostics this
node FunctionInvocationExpressionSyntax
argumentTypes IEnumerable
Résultat void

ReportUndeclaredFunctionInNamespaceOrClass() public static méthode

public static ReportUndeclaredFunctionInNamespaceOrClass ( this diagnostics, QualifiedDeclarationNameSyntax name ) : void
diagnostics this
name QualifiedDeclarationNameSyntax
Résultat void

ReportUndeclaredIndexer() public static méthode

public static ReportUndeclaredIndexer ( this diagnostics, ElementAccessExpressionSyntax node, TypeSymbol declaringType, IEnumerable argumentTypes ) : void
diagnostics this
node ElementAccessExpressionSyntax
declaringType ShaderTools.Hlsl.Symbols.TypeSymbol
argumentTypes IEnumerable
Résultat void

ReportUndeclaredMethod() public static méthode

public static ReportUndeclaredMethod ( this diagnostics, MethodInvocationExpressionSyntax node, TypeSymbol declaringType, IEnumerable argumentTypes ) : void
diagnostics this
node MethodInvocationExpressionSyntax
declaringType ShaderTools.Hlsl.Symbols.TypeSymbol
argumentTypes IEnumerable
Résultat void

ReportUndeclaredNamespaceOrType() public static méthode

public static ReportUndeclaredNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax node ) : void
diagnostics this
node QualifiedDeclarationNameSyntax
Résultat void

ReportUndeclaredNumericConstructor() public static méthode

public static ReportUndeclaredNumericConstructor ( this diagnostics, NumericConstructorInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
diagnostics this
node NumericConstructorInvocationExpressionSyntax
argumentTypes IEnumerable
Résultat void

ReportUndeclaredType() public static méthode

public static ReportUndeclaredType ( this diagnostics, SyntaxNode type ) : void
diagnostics this
type SyntaxNode
Résultat void

ReportUnterminatedComment() public static méthode

public static ReportUnterminatedComment ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
Résultat void

ReportUnterminatedString() public static méthode

public static ReportUnterminatedString ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
Résultat void

ReportVariableNotDeclared() public static méthode

public static ReportVariableNotDeclared ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
Résultat void