Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Ast.Node Class Reference

Abstract node. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.Node:
SiliconStudio.Paradox.Shaders.Parser.Ast.ParametersBlock SiliconStudio.Shaders.Ast.AttributeBase SiliconStudio.Shaders.Ast.CompositeEnum SiliconStudio.Shaders.Ast.Expression SiliconStudio.Shaders.Ast.GenericDeclaration SiliconStudio.Shaders.Ast.Glsl.LayoutKeyValue SiliconStudio.Shaders.Ast.Hlsl.ConstantBuffer SiliconStudio.Shaders.Ast.Hlsl.Pass SiliconStudio.Shaders.Ast.Hlsl.Technique SiliconStudio.Shaders.Ast.Identifier SiliconStudio.Shaders.Ast.Literal SiliconStudio.Shaders.Ast.MethodDeclaration SiliconStudio.Shaders.Ast.Shader SiliconStudio.Shaders.Ast.Statement SiliconStudio.Shaders.Ast.SwitchCaseGroup SiliconStudio.Shaders.Ast.TypeBase SiliconStudio.Shaders.Ast.Variable

Public Member Functions

override bool Equals (object against)
 
override int GetHashCode ()
 
object GetTag (object tagKey)
 Gets a tag value associated to this node.. More...
 
bool RemoveTag (object tagKey)
 Gets a tag value associated to this node.. More...
 
bool ContainsTag (object tagKey)
 Determines whether the specified instance contains this tag. More...
 
void SetTag (object tagKey, object tagValue)
 Sets a tag value associated to this node. More...
 
virtual IEnumerable< NodeChildrens ()
 Gets the child nodes. More...
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (Node left, Node right)
 
static bool operator!= (Node left, Node right)
 

Protected Member Functions

 Node ()
 Initializes a new instance of the Node class. More...
 

Properties

SourceSpan Span [get, set]
 Gets or sets the source span. More...
 
List< NodeChildrenList [get]
 Gets the childrens. More...
 

Detailed Description

Abstract node.

Definition at line 15 of file Node.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.Node.Node ( )
protected

Initializes a new instance of the Node class.

Definition at line 27 of file Node.cs.

Member Function Documentation

virtual IEnumerable<Node> SiliconStudio.Shaders.Ast.Node.Childrens ( )
virtual

Gets the child nodes.

Returns
An enumeration of child nodes

Reimplemented in SiliconStudio.Shaders.Ast.CompositeEnum, SiliconStudio.Shaders.Ast.MethodDeclaration, SiliconStudio.Shaders.Ast.LiteralExpression, SiliconStudio.Shaders.Ast.Variable, SiliconStudio.Shaders.Ast.GenericType, SiliconStudio.Shaders.Ast.Hlsl.Semantic, SiliconStudio.Shaders.Ast.StatementList, SiliconStudio.Shaders.Ast.ExpressionList, SiliconStudio.Shaders.Ast.ArrayType, SiliconStudio.Shaders.Ast.Hlsl.RegisterLocation, SiliconStudio.Shaders.Ast.Hlsl.PackOffset, SiliconStudio.Shaders.Ast.Literal, SiliconStudio.Shaders.Ast.ForStatement, SiliconStudio.Shaders.Ast.Hlsl.ConstantBuffer, SiliconStudio.Shaders.Ast.Hlsl.Typedef, SiliconStudio.Paradox.Shaders.Parser.Ast.ClassIdentifierGeneric, SiliconStudio.Shaders.Ast.Hlsl.CompositeIdentifier, SiliconStudio.Shaders.Ast.Hlsl.ClassType, SiliconStudio.Shaders.Ast.MemberReferenceExpression, SiliconStudio.Shaders.Ast.VariableReferenceExpression, SiliconStudio.Paradox.Shaders.Parser.Ast.ForEachStatement, SiliconStudio.Shaders.Ast.Hlsl.Technique, SiliconStudio.Shaders.Ast.MethodDefinition, SiliconStudio.Shaders.Ast.MethodInvocationExpression, SiliconStudio.Shaders.Ast.AssignmentExpression, SiliconStudio.Shaders.Ast.BinaryExpression, SiliconStudio.Shaders.Ast.ConditionalExpression, SiliconStudio.Shaders.Ast.Glsl.LayoutKeyValue, SiliconStudio.Shaders.Ast.Hlsl.CompileExpression, SiliconStudio.Shaders.Ast.Hlsl.StateExpression, SiliconStudio.Shaders.Ast.IndexerExpression, SiliconStudio.Shaders.Ast.Hlsl.InterfaceType, SiliconStudio.Shaders.Ast.Hlsl.Pass, SiliconStudio.Paradox.Shaders.Parser.Ast.MixinStatement, SiliconStudio.Shaders.Ast.CaseStatement, SiliconStudio.Shaders.Ast.Glsl.LayoutQualifier, SiliconStudio.Shaders.Ast.DeclarationStatement, SiliconStudio.Shaders.Ast.ExpressionStatement, SiliconStudio.Shaders.Ast.KeywordExpression, SiliconStudio.Shaders.Ast.ParenthesizedExpression, SiliconStudio.Shaders.Ast.BlockStatement, SiliconStudio.Shaders.Ast.Hlsl.AttributeDeclaration, SiliconStudio.Shaders.Ast.ReturnStatement, SiliconStudio.Shaders.Ast.UnaryExpression, SiliconStudio.Shaders.Ast.SwitchCaseGroup, SiliconStudio.Paradox.Shaders.Parser.Ast.ParametersBlock, SiliconStudio.Shaders.Ast.TypeReferenceExpression, SiliconStudio.Shaders.Ast.IfStatement, SiliconStudio.Shaders.Ast.SwitchStatement, SiliconStudio.Shaders.Ast.WhileStatement, SiliconStudio.Shaders.Ast.Hlsl.StateInitializer, SiliconStudio.Shaders.Ast.Shader, SiliconStudio.Shaders.Ast.StructType, SiliconStudio.Paradox.Shaders.Parser.Ast.EnumType, SiliconStudio.Paradox.Shaders.Parser.Ast.NamespaceBlock, SiliconStudio.Paradox.Shaders.Parser.Ast.ShaderClassType, SiliconStudio.Shaders.Ast.Hlsl.CastExpression, SiliconStudio.Paradox.Shaders.Parser.Ast.ShaderBlock, SiliconStudio.Shaders.Ast.ArrayInitializerExpression, SiliconStudio.Paradox.Shaders.Parser.Ast.UsingStatement, and SiliconStudio.Paradox.Shaders.Parser.Ast.UsingParametersStatement.

Definition at line 127 of file Node.cs.

Referenced by SiliconStudio.Shaders.Ast.NodeExtensions.Descendants().

bool SiliconStudio.Shaders.Ast.Node.ContainsTag ( object  tagKey)

Determines whether the specified instance contains this tag.

Parameters
tagKeyThe tag key.
Returns
true if the specified instance contains this tag; otherwise, false.

Definition at line 105 of file Node.cs.

override bool SiliconStudio.Shaders.Ast.Node.Equals ( object  against)

Definition at line 40 of file Node.cs.

override int SiliconStudio.Shaders.Ast.Node.GetHashCode ( )

Definition at line 45 of file Node.cs.

object SiliconStudio.Shaders.Ast.Node.GetTag ( object  tagKey)

Gets a tag value associated to this node..

Parameters
tagKeyThe tag key.
Returns
The tag value

Definition at line 78 of file Node.cs.

Referenced by SiliconStudio.Shaders.Analysis.Hlsl.HlslSemanticAnalysis.MatrixSwizzleDecode().

static bool SiliconStudio.Shaders.Ast.Node.operator!= ( Node  left,
Node  right 
)
static

Definition at line 55 of file Node.cs.

static bool SiliconStudio.Shaders.Ast.Node.operator== ( Node  left,
Node  right 
)
static

Definition at line 50 of file Node.cs.

bool SiliconStudio.Shaders.Ast.Node.RemoveTag ( object  tagKey)

Gets a tag value associated to this node..

Parameters
tagKeyThe tag key.
Returns
The tag value

Definition at line 92 of file Node.cs.

void SiliconStudio.Shaders.Ast.Node.SetTag ( object  tagKey,
object  tagValue 
)

Sets a tag value associated to this node.

Parameters
tagKeyThe tag key.
tagValueThe tag value.

Definition at line 116 of file Node.cs.

override string SiliconStudio.Shaders.Ast.Node.ToString ( )

Definition at line 133 of file Node.cs.

Property Documentation

List<Node> SiliconStudio.Shaders.Ast.Node.ChildrenList
getprotected

Gets the childrens.

Definition at line 64 of file Node.cs.


The documentation for this class was generated from the following file: