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

Declaration of a method. More...

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

Public Member Functions

 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 IEnumerable< NodeChildrens ()
 Gets the child nodes.
Returns
An enumeration of child nodes
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

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

Declaration of a method.

Definition at line 12 of file MethodDeclaration.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.MethodDeclaration.MethodDeclaration ( )

Initializes a new instance of the MethodDeclaration class.

Definition at line 19 of file MethodDeclaration.cs.

Member Function Documentation

bool SiliconStudio.Shaders.Ast.MethodDeclaration.CheckConstraint ( GenericParameterType  parameterType,
TypeBase  typeToCheck 
)

Checks the constraint.

Parameters
parameterTypeType of the parameter.
typeToCheckThe type to check.
Returns

Definition at line 98 of file MethodDeclaration.cs.

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

Gets the child nodes.

Returns
An enumeration of child nodes

Reimplemented from SiliconStudio.Shaders.Ast.Node.

Reimplemented in SiliconStudio.Shaders.Ast.MethodDefinition.

Definition at line 194 of file MethodDeclaration.cs.

References SiliconStudio.Shaders.Ast.Qualifier.None.

void SiliconStudio.Shaders.Ast.MethodDeclaration.CopyTo ( MethodDeclaration  target)

Copies declartion to another instance.

Parameters
targetThe target instance.

Definition at line 184 of file MethodDeclaration.cs.

bool SiliconStudio.Shaders.Ast.MethodDeclaration.IsSameSignature ( MethodDeclaration  methodDeclaration)

Test if a method declaration has the same signature.

Parameters
methodDeclarationThe method declaration.
Returns
True if the method passed has the same signature

Definition at line 115 of file MethodDeclaration.cs.

References SiliconStudio.Shaders.Ast.MethodDeclaration.Name, and SiliconStudio.Shaders.Ast.MethodDeclaration.Parameters.

bool SiliconStudio.Shaders.Ast.MethodDeclaration.IsSameSignature ( MethodInvocationExpression  methodInvocationExpression)

Test if a method invocation expression has the same signature.

Parameters
methodInvocationExpressionThe method invocation expression.
Returns
True if the method passed has the same signature

Definition at line 143 of file MethodDeclaration.cs.

References SiliconStudio.Shaders.Ast.MethodInvocationExpression.Arguments.

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

Definition at line 212 of file MethodDeclaration.cs.

Property Documentation

List<AttributeBase> SiliconStudio.Shaders.Ast.MethodDeclaration.Attributes
getset

Gets or sets the attributes.

The attributes.

<inhericdoc>

Definition at line 38 of file MethodDeclaration.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteMethodDeclaration().

bool SiliconStudio.Shaders.Ast.MethodDeclaration.IsBuiltin
getset

Gets or sets a value indicating whether this instance is builtin.

true if this instance is builtin; otherwise, false.

Definition at line 86 of file MethodDeclaration.cs.

Identifier SiliconStudio.Shaders.Ast.MethodDeclaration.Name
getset
List<GenericParameterConstraint> SiliconStudio.Shaders.Ast.MethodDeclaration.ParameterConstraints
getset

Gets or sets the parameter constraints.

The parameter constraints.

Definition at line 54 of file MethodDeclaration.cs.

List<Parameter> SiliconStudio.Shaders.Ast.MethodDeclaration.Parameters
getset
Qualifier SiliconStudio.Shaders.Ast.MethodDeclaration.Qualifiers
getset

Gets or sets the storage class.

The storage class.

Definition at line 70 of file MethodDeclaration.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteMethodDeclaration().

TypeBase SiliconStudio.Shaders.Ast.MethodDeclaration.ReturnType
getset

Gets or sets the type of the return.

The type of the return.

Definition at line 78 of file MethodDeclaration.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteMethodDeclaration().


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