![]() |
Paradox Game Engine
v1.0.0 beta06
|
Base class for analysis. More...
Public Member Functions | |
| abstract void | Run () |
| Runs this instance. More... | |
Protected Member Functions | |
| 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< IDeclaration > | FindDeclarations (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... | |
Properties | |
| 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< ScopeDeclaration > | ScopeStack [get, set] |
| Gets the scope stack. More... | |
Properties inherited from SiliconStudio.Shaders.Visitor.VisitorBase | |
| List< Node > | NodeStack [get, set] |
| Gets or sets the node stack. More... | |
Base class for analysis.
Definition at line 14 of file AnalysisBase.cs.
|
protected |
Initializes a new instance of the AnalysisBase class.
| result | The result. |
Definition at line 20 of file AnalysisBase.cs.
|
protected |
Logs an Error with the specified message.
| message | The message. |
| span | The span. |
Definition at line 40 of file AnalysisBase.cs.
|
protected |
Logs an Error with the specified message.
| message | The message. |
| span | The span. |
| parameters | The parameters. |
Definition at line 51 of file AnalysisBase.cs.
|
protectedvirtual |
Gets the type of the binary implicit conversion.
| span | The span. |
| left | The left. |
| right | The right. |
| isBinaryOperator | if set to true [is binary operator]. |
Definition at line 108 of file AnalysisBase.cs.
References SiliconStudio.Shaders.Utility.MessageCode.ErrorBinaryTypeDeduction.
|
protected |
Gets the type of the binary implicit scalar conversion.
| span | The span. |
| left | The left. |
| right | The right. |
Definition at line 161 of file AnalysisBase.cs.
References SiliconStudio.Shaders.Utility.MessageCode.ErrorScalarTypeConversion.
|
protectedvirtual |
Gets the type of the binary implicit conversion.
| span | The span. |
| left | The left. |
| right | The right. |
Definition at line 142 of file AnalysisBase.cs.
References SiliconStudio.Shaders.Utility.MessageCode.ErrorBinaryTypeDeduction, and SiliconStudio.Shaders.Ast.TypeBase.ResolveType().
|
protectedvirtual |
Gets the type of the binary implicit conversion.
| span | The span. |
| left | The left. |
| right | The right. |
Definition at line 125 of file AnalysisBase.cs.
References SiliconStudio.Shaders.Utility.MessageCode.ErrorBinaryTypeDeduction, and SiliconStudio.Shaders.Ast.TypeBase.ResolveType().
|
protected |
Logs an Info with the specified message.
| message | The message. |
| span | The span. |
Definition at line 61 of file AnalysisBase.cs.
|
protected |
Logs an Info with the specified message.
| message | The message. |
| span | The span. |
| parameters | The parameters. |
Definition at line 72 of file AnalysisBase.cs.
|
pure virtual |
Runs this instance.
Implemented in SiliconStudio.Shaders.Analysis.CastAnalysis, and SiliconStudio.Shaders.Analysis.SemanticAnalysis.
|
protected |
Logs an Warning with the specified message.
| message | The message. |
| span | The span. |
Definition at line 82 of file AnalysisBase.cs.
|
protected |
Logs an Warning with the specified message.
| message | The message. |
| span | The span. |
| parameters | The parameters. |
Definition at line 93 of file AnalysisBase.cs.
|
getset |
Gets the parsing result.
Definition at line 28 of file AnalysisBase.cs.