C# Class ShaderTools.VisualStudio.Hlsl.Util.ContextQuery.SyntaxTreeExtensions

Mostrar archivo Open project: tgjones/HlslTools

Public Methods

Method Description
IsPreprocessorKeywordContext ( this syntaxTree, SourceLocation position, SyntaxToken preProcessorTokenOnLeftOfPosition ) : bool
IsTypeDeclarationContext ( this syntaxTree, SyntaxToken token ) : bool

Method Details

IsPreprocessorKeywordContext() public static method

public static IsPreprocessorKeywordContext ( this syntaxTree, SourceLocation position, SyntaxToken preProcessorTokenOnLeftOfPosition ) : bool
syntaxTree this
position ShaderTools.Hlsl.Syntax.SourceLocation
preProcessorTokenOnLeftOfPosition SyntaxToken
return bool

IsTypeDeclarationContext() public static method

public static IsTypeDeclarationContext ( this syntaxTree, SyntaxToken token ) : bool
syntaxTree this
token SyntaxToken
return bool