C# Class ShaderTools.Hlsl.Parser.DirectiveStack

Datei anzeigen Open project: tgjones/HlslTools Class Usage Examples

Public Properties

Property Type Description
Empty DirectiveStack

Public Methods

Method Description
Add ( Directive directive ) : DirectiveStack
HasPreviousIfOrElif ( ) : bool
HasUnfinishedIf ( ) : bool
HasUnfinishedRegion ( ) : bool
IsDefined ( string id ) : DefineState
IsDefined ( string id, DefineDirectiveTriviaSyntax &directive ) : DefineState
PreviousBranchTaken ( ) : bool

Private Methods

Method Description
CompleteIf ( ConsList stack, bool &include ) : ConsList
DirectiveStack ( ConsList directives ) : ShaderTools.Hlsl.Syntax
GetPreviousIf ( ConsList directives ) : ConsList
GetPreviousIfElifElse ( ConsList directives ) : ConsList

Method Details

Add() public method

public Add ( Directive directive ) : DirectiveStack
directive Directive
return DirectiveStack

HasPreviousIfOrElif() public method

public HasPreviousIfOrElif ( ) : bool
return bool

HasUnfinishedIf() public method

public HasUnfinishedIf ( ) : bool
return bool

HasUnfinishedRegion() public method

public HasUnfinishedRegion ( ) : bool
return bool

IsDefined() public method

public IsDefined ( string id ) : DefineState
id string
return DefineState

IsDefined() public method

public IsDefined ( string id, DefineDirectiveTriviaSyntax &directive ) : DefineState
id string
directive DefineDirectiveTriviaSyntax
return DefineState

PreviousBranchTaken() public method

public PreviousBranchTaken ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

public static DirectiveStack,ShaderTools.Hlsl.Parser Empty
return DirectiveStack