![]() |
Paradox Game Engine
v1.0.0 beta06
|
Abstract node. More...
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< Node > | Childrens () |
| 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< Node > | ChildrenList [get] |
| Gets the childrens. More... | |
|
protected |
|
virtual |
Gets the 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 | ) |
| override bool SiliconStudio.Shaders.Ast.Node.Equals | ( | object | against | ) |
| object SiliconStudio.Shaders.Ast.Node.GetTag | ( | object | tagKey | ) |
Gets a tag value associated to this node..
| tagKey | The tag key. |
Definition at line 78 of file Node.cs.
Referenced by SiliconStudio.Shaders.Analysis.Hlsl.HlslSemanticAnalysis.MatrixSwizzleDecode().
| bool SiliconStudio.Shaders.Ast.Node.RemoveTag | ( | object | tagKey | ) |
| void SiliconStudio.Shaders.Ast.Node.SetTag | ( | object | tagKey, |
| object | tagValue | ||
| ) |
|
getprotected |
|
getset |
Gets or sets the source span.
The source span.
Definition at line 37 of file Node.cs.
Referenced by SiliconStudio.Shaders.Grammar.ShaderGrammar.CreateVariableDeclaratorRawAst(), SiliconStudio.Shaders.Writer.ShaderWriter.PreVisitNode(), SiliconStudio.Shaders.Analysis.SemanticAnalysis.ProcessIndexerExpression(), SiliconStudio.Shaders.Analysis.CastAnalysis.Visit(), SiliconStudio.Shaders.Analysis.SemanticAnalysis.Visit(), SiliconStudio.Paradox.Shaders.Parser.Mixins.ShaderMixinCodeGen.Visit(), SiliconStudio.Shaders.Convertor.HlslToGlslConvertor.Visit(), and SiliconStudio.Shaders.Writer.ShaderWriter.WriteLinkLine().