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

A method definition with a body of statements. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.MethodDefinition:
SiliconStudio.Shaders.Ast.MethodDeclaration SiliconStudio.Shaders.Ast.IScopeContainer SiliconStudio.Shaders.Ast.Node SiliconStudio.Shaders.Ast.IDeclaration SiliconStudio.Shaders.Ast.IAttributes SiliconStudio.Shaders.Ast.IQualifiers SiliconStudio.Shaders.Ast.IScopeContainer

Public Member Functions

 MethodDefinition ()
 Initializes a new instance of the MethodDefinition class. More...
 
 MethodDefinition (TypeBase returntype, string name)
 Initializes a new instance of the MethodDefinition class. More...
 
override IEnumerable< NodeChildrens ()
 Gets the child nodes.
Returns
An enumeration of child nodes
More...
 
- Public Member Functions inherited from SiliconStudio.Shaders.Ast.MethodDeclaration
 MethodDeclaration ()
 Initializes a new instance of the MethodDeclaration class. More...
 
bool CheckConstraint (GenericParameterType parameterType, TypeBase typeToCheck)
 Checks the constraint. More...
 
bool IsSameSignature (MethodDeclaration methodDeclaration)
 Test if a method declaration has the same signature. More...
 
bool IsSameSignature (MethodInvocationExpression methodInvocationExpression)
 Test if a method invocation expression has the same signature. More...
 
void CopyTo (MethodDeclaration target)
 Copies declartion to another instance. More...
 
override string ToString ()
 
- Public Member Functions inherited from SiliconStudio.Shaders.Ast.Node
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...
 
override string ToString ()
 

Properties

MethodDeclaration Declaration [get, set]
 Gets or sets the declaration. More...
 
StatementList Body [get, set]
 Gets or sets the list of statements. More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.MethodDeclaration
List< AttributeBaseAttributes [get, set]
 Gets or sets the attributes. More...
 
Identifier Name [get, set]
 Gets or sets the name. More...
 
List< GenericParameterConstraintParameterConstraints [get, set]
 Gets or sets the parameter constraints. More...
 
List< ParameterParameters [get, set]
 Gets or sets the parameters. More...
 
Qualifier Qualifiers [get, set]
 Gets or sets the storage class. More...
 
TypeBase ReturnType [get, set]
 Gets or sets the type of the return. More...
 
bool IsBuiltin [get, set]
 Gets or sets a value indicating whether this instance is builtin. More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.Node
SourceSpan Span [get, set]
 Gets or sets the source span. More...
 
List< NodeChildrenList [get]
 Gets the childrens. More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.IDeclaration
Identifier Name [get, set]
 Gets or sets the name of this declaration More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.IAttributes
List< AttributeBaseAttributes [get, set]
 
- Properties inherited from SiliconStudio.Shaders.Ast.IQualifiers
Qualifier Qualifiers [get, set]
 Gets or sets the qualifiers. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SiliconStudio.Shaders.Ast.Node
static bool operator== (Node left, Node right)
 
static bool operator!= (Node left, Node right)
 
- Protected Member Functions inherited from SiliconStudio.Shaders.Ast.Node
 Node ()
 Initializes a new instance of the Node class. More...
 

Detailed Description

A method definition with a body of statements.

Definition at line 12 of file MethodDefinition.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.MethodDefinition.MethodDefinition ( )

Initializes a new instance of the MethodDefinition class.

Definition at line 22 of file MethodDefinition.cs.

SiliconStudio.Shaders.Ast.MethodDefinition.MethodDefinition ( TypeBase  returntype,
string  name 
)

Initializes a new instance of the MethodDefinition class.

Parameters
returntypeThe returntype.
nameThe name.

Definition at line 33 of file MethodDefinition.cs.

Member Function Documentation

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

Gets the child nodes.

Returns
An enumeration of child nodes

Reimplemented from SiliconStudio.Shaders.Ast.MethodDeclaration.

Definition at line 66 of file MethodDefinition.cs.

Property Documentation

StatementList SiliconStudio.Shaders.Ast.MethodDefinition.Body
getset

Gets or sets the list of statements.

The list of statements.

Definition at line 58 of file MethodDefinition.cs.

MethodDeclaration SiliconStudio.Shaders.Ast.MethodDefinition.Declaration
getset

Gets or sets the declaration.

The declaration.

Definition at line 50 of file MethodDefinition.cs.


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