Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Analysis.CastAnalysis Class Reference
Inheritance diagram for SiliconStudio.Shaders.Analysis.CastAnalysis:
SiliconStudio.Shaders.Analysis.AnalysisBase SiliconStudio.Shaders.Visitor.ShaderVisitor SiliconStudio.Shaders.Visitor.VisitorBase

Public Member Functions

 CastAnalysis (ParsingResult result)
 
override void Run ()
 Runs this instance. More...
 

Protected Member Functions

Expression Visit (UnaryExpression expression)
 
Expression Visit (BinaryExpression expression)
 
virtual void Visit (IfStatement ifStatement)
 
void Visit (ConditionalExpression conditionalExpression)
 
void Visit (ReturnStatement returnStatement)
 
void Visit (Variable variable)
 
void Visit (AssignmentExpression expression)
 
void Visit (IndexerExpression expression)
 
void Visit (MethodInvocationExpression expression)
 
- Protected Member Functions inherited from SiliconStudio.Shaders.Analysis.AnalysisBase
 AnalysisBase (ParsingResult result)
 Initializes a new instance of the AnalysisBase class. More...
 
void Error (MessageCode message, SourceSpan span)
 Logs an Error with the specified message. More...
 
void Error (MessageCode message, SourceSpan span, params object[] parameters)
 Logs an Error with the specified message. More...
 
void Info (string message, SourceSpan span)
 Logs an Info with the specified message. More...
 
void Info (string message, SourceSpan span, params object[] parameters)
 Logs an Info with the specified message. More...
 
void Warning (MessageCode message, SourceSpan span)
 Logs an Warning with the specified message. More...
 
void Warning (MessageCode message, SourceSpan span, params object[] parameters)
 Logs an Warning with the specified message. More...
 
virtual TypeBase GetBinaryImplicitConversionType (SourceSpan span, TypeBase left, TypeBase right, bool isBinaryOperator)
 Gets the type of the binary implicit conversion. More...
 
virtual TypeBase GetMultiplyImplicitConversionType (SourceSpan span, TypeBase left, TypeBase right)
 Gets the type of the binary implicit conversion. More...
 
virtual TypeBase GetDivideImplicitConversionType (SourceSpan span, TypeBase left, TypeBase right)
 Gets the type of the binary implicit conversion. More...
 
ScalarType GetBinaryImplicitScalarConversionType (SourceSpan span, TypeBase left, TypeBase right)
 Gets the type of the binary implicit scalar conversion. More...
 
- Protected Member Functions inherited from SiliconStudio.Shaders.Visitor.ShaderVisitor
 ShaderVisitor (bool buildScopeDeclaration, bool useNodeStack)
 Initializes a new instance of the ShaderVisitor class. More...
 
virtual ScopeDeclaration NewScope (IScopeContainer container=null)
 
virtual Node Visit (Node node)
 
virtual IEnumerable< IDeclarationFindDeclarations (string name)
 Finds a list of declaration by its name. More...
 
IDeclaration FindDeclaration (string name)
 Finds a declaration by its name. More...
 
override bool PreVisitNode (Node node)
 Called before visiting the node. More...
 
override void PostVisitNode (Node node, bool nodeVisited)
 Called after visiting the node. More...
 
- Protected Member Functions inherited from SiliconStudio.Shaders.Visitor.VisitorBase
 VisitorBase (bool useNodeStack=false)
 Initializes a new instance of the VisitorBase class. More...
 
void VisitDynamicList< T > (IList< T > list, Func< T, bool > filter=null)
 Visits the list. More...
 
virtual Node VisitDynamic< T > (T node, bool visitRealType=true)
 Visits the node. More...
 

Additional Inherited Members

- Properties inherited from SiliconStudio.Shaders.Analysis.AnalysisBase
ParsingResult ParsingResult [get, set]
 Gets the parsing result. More...
 
- Properties inherited from SiliconStudio.Shaders.Visitor.ShaderVisitor
Node ParentNode [get]
 Gets the parent node or null if no parents More...
 
Stack< ScopeDeclarationScopeStack [get, set]
 Gets the scope stack. More...
 
- Properties inherited from SiliconStudio.Shaders.Visitor.VisitorBase
List< NodeNodeStack [get, set]
 Gets or sets the node stack. More...
 

Detailed Description

Definition at line 9 of file CastAnalysis.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Analysis.CastAnalysis.CastAnalysis ( ParsingResult  result)

Definition at line 11 of file CastAnalysis.cs.

Member Function Documentation

override void SiliconStudio.Shaders.Analysis.CastAnalysis.Run ( )
virtual

Runs this instance.

Implements SiliconStudio.Shaders.Analysis.AnalysisBase.

Definition at line 222 of file CastAnalysis.cs.

References SiliconStudio.Shaders.Parser.ParsingResult.Shader.

Expression SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( UnaryExpression  expression)
protected

Definition at line 16 of file CastAnalysis.cs.

References SiliconStudio.Shaders.Ast.ScalarType.Bool.

Expression SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( BinaryExpression  expression)
protected
virtual void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( IfStatement  ifStatement)
protectedvirtual

Definition at line 101 of file CastAnalysis.cs.

void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( ConditionalExpression  conditionalExpression)
protected

Definition at line 114 of file CastAnalysis.cs.

void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( ReturnStatement  returnStatement)
protected

Definition at line 150 of file CastAnalysis.cs.

void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( Variable  variable)
protected

Definition at line 164 of file CastAnalysis.cs.

void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( AssignmentExpression  expression)
protected

Definition at line 180 of file CastAnalysis.cs.

void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( IndexerExpression  expression)
protected
void SiliconStudio.Shaders.Analysis.CastAnalysis.Visit ( MethodInvocationExpression  expression)
protected

Definition at line 206 of file CastAnalysis.cs.


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