C# 클래스 ShaderTools.Hlsl.Diagnostics.DiagnosticExtensions

파일 보기 프로젝트 열기: tgjones/HlslTools

공개 메소드들

메소드 설명
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

메소드 상세

GetMessage() 공개 정적인 메소드

public static GetMessage ( this diagnosticId ) : string
diagnosticId this
리턴 string

Report() 공개 정적인 메소드

public static Report ( this diagnostics, TextSpan textSpan, DiagnosticId diagnosticId ) : void
diagnostics this
textSpan TextSpan
diagnosticId DiagnosticId
리턴 void

ReportAmbiguousBinaryOperator() 공개 정적인 메소드

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
리턴 void

ReportAmbiguousField() 공개 정적인 메소드

public static ReportAmbiguousField ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
리턴 void

ReportAmbiguousInvocation() 공개 정적인 메소드

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
리턴 void

ReportAmbiguousName() 공개 정적인 메소드

public static ReportAmbiguousName ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
diagnostics this
name SyntaxToken
candidates IReadOnlyList
리턴 void

ReportAmbiguousNamespaceOrType() 공개 정적인 메소드

public static ReportAmbiguousNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax syntax, IReadOnlyList candidates ) : void
diagnostics this
syntax QualifiedDeclarationNameSyntax
candidates IReadOnlyList
리턴 void

ReportAmbiguousType() 공개 정적인 메소드

public static ReportAmbiguousType ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
diagnostics this
name SyntaxToken
candidates IReadOnlyList
리턴 void

ReportAmbiguousUnaryOperator() 공개 정적인 메소드

public static ReportAmbiguousUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
diagnostics this
operatorToken SyntaxToken
type ShaderTools.Hlsl.Symbols.TypeSymbol
리턴 void

ReportCannotApplyBinaryOperator() 공개 정적인 메소드

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
리턴 void

ReportCannotApplyUnaryOperator() 공개 정적인 메소드

public static ReportCannotApplyUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
diagnostics this
operatorToken SyntaxToken
type ShaderTools.Hlsl.Symbols.TypeSymbol
리턴 void

ReportCannotConvert() 공개 정적인 메소드

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
리턴 void

ReportFunctionMissingImplementation() 공개 정적인 메소드

public static ReportFunctionMissingImplementation ( this diagnostics, FunctionInvocationExpressionSyntax syntax ) : void
diagnostics this
syntax FunctionInvocationExpressionSyntax
리턴 void

ReportIllegalInputCharacter() 공개 정적인 메소드

public static ReportIllegalInputCharacter ( this diagnostics, TextSpan textSpan, char character ) : void
diagnostics this
textSpan TextSpan
character char
리턴 void

ReportImplicitTruncation() 공개 정적인 메소드

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
리턴 void

ReportInvalidHex() 공개 정적인 메소드

public static ReportInvalidHex ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
리턴 void

ReportInvalidInteger() 공개 정적인 메소드

public static ReportInvalidInteger ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
리턴 void

ReportInvalidOctal() 공개 정적인 메소드

public static ReportInvalidOctal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
리턴 void

ReportInvalidReal() 공개 정적인 메소드

public static ReportInvalidReal ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
리턴 void

ReportInvocationRequiresParenthesis() 공개 정적인 메소드

public static ReportInvocationRequiresParenthesis ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
리턴 void

ReportLoopControlVariableConflict() 공개 정적인 메소드

public static ReportLoopControlVariableConflict ( this diagnostics, VariableDeclaratorSyntax syntax ) : void
diagnostics this
syntax VariableDeclaratorSyntax
리턴 void

ReportMethodMissingImplementation() 공개 정적인 메소드

public static ReportMethodMissingImplementation ( this diagnostics, MethodInvocationExpressionSyntax syntax ) : void
diagnostics this
syntax MethodInvocationExpressionSyntax
리턴 void

ReportNoVoidHere() 공개 정적인 메소드

public static ReportNoVoidHere ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
리턴 void

ReportNoVoidParameter() 공개 정적인 메소드

public static ReportNoVoidParameter ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
리턴 void

ReportNumberTooLarge() 공개 정적인 메소드

public static ReportNumberTooLarge ( this diagnostics, TextSpan textSpan, string tokenText ) : void
diagnostics this
textSpan TextSpan
tokenText string
리턴 void

ReportSymbolRedefined() 공개 정적인 메소드

public static ReportSymbolRedefined ( this diagnostics, TextSpan span, Symbol symbol ) : void
diagnostics this
span TextSpan
symbol ShaderTools.Hlsl.Symbols.Symbol
리턴 void

ReportTokenExpected() 공개 정적인 메소드

public static ReportTokenExpected ( this diagnostics, TextSpan span, SyntaxToken actual, SyntaxKind expected ) : void
diagnostics this
span TextSpan
actual SyntaxToken
expected SyntaxKind
리턴 void

ReportTokenUnexpected() 공개 정적인 메소드

public static ReportTokenUnexpected ( this diagnostics, TextSpan span, SyntaxToken actual ) : void
diagnostics this
span TextSpan
actual SyntaxToken
리턴 void

ReportUndeclaredField() 공개 정적인 메소드

public static ReportUndeclaredField ( this diagnostics, FieldAccessExpressionSyntax node, TypeSymbol type ) : void
diagnostics this
node FieldAccessExpressionSyntax
type ShaderTools.Hlsl.Symbols.TypeSymbol
리턴 void

ReportUndeclaredFunction() 공개 정적인 메소드

public static ReportUndeclaredFunction ( this diagnostics, FunctionInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
diagnostics this
node FunctionInvocationExpressionSyntax
argumentTypes IEnumerable
리턴 void

ReportUndeclaredFunctionInNamespaceOrClass() 공개 정적인 메소드

public static ReportUndeclaredFunctionInNamespaceOrClass ( this diagnostics, QualifiedDeclarationNameSyntax name ) : void
diagnostics this
name QualifiedDeclarationNameSyntax
리턴 void

ReportUndeclaredIndexer() 공개 정적인 메소드

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

ReportUndeclaredMethod() 공개 정적인 메소드

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

ReportUndeclaredNamespaceOrType() 공개 정적인 메소드

public static ReportUndeclaredNamespaceOrType ( this diagnostics, QualifiedDeclarationNameSyntax node ) : void
diagnostics this
node QualifiedDeclarationNameSyntax
리턴 void

ReportUndeclaredNumericConstructor() 공개 정적인 메소드

public static ReportUndeclaredNumericConstructor ( this diagnostics, NumericConstructorInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
diagnostics this
node NumericConstructorInvocationExpressionSyntax
argumentTypes IEnumerable
리턴 void

ReportUndeclaredType() 공개 정적인 메소드

public static ReportUndeclaredType ( this diagnostics, SyntaxNode type ) : void
diagnostics this
type SyntaxNode
리턴 void

ReportUnterminatedComment() 공개 정적인 메소드

public static ReportUnterminatedComment ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
리턴 void

ReportUnterminatedString() 공개 정적인 메소드

public static ReportUnterminatedString ( this diagnostics, TextSpan textSpan ) : void
diagnostics this
textSpan TextSpan
리턴 void

ReportVariableNotDeclared() 공개 정적인 메소드

public static ReportVariableNotDeclared ( this diagnostics, SyntaxToken name ) : void
diagnostics this
name SyntaxToken
리턴 void