本文整理汇总了C#中Production.GetId方法的典型用法代码示例。如果您正苦于以下问题:C# Production.GetId方法的具体用法?C# Production.GetId怎么用?C# Production.GetId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Production
的用法示例。
在下文中一共展示了Production.GetId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Child
/**
* <summary>Called when adding a child to a parse tree
* node.</summary>
*
* <param name='node'>the parent node</param>
* <param name='child'>the child node, or null</param>
*
* <exception cref='ParseException'>if the node analysis
* discovered errors</exception>
*/
public override void Child(Production node, Node child)
{
switch (node.GetId()) {
case (int) HlslConstants.FILE:
ChildFile(node, child);
break;
case (int) HlslConstants.TECHNIQUE_DECLARATION:
ChildTechniqueDeclaration(node, child);
break;
case (int) HlslConstants.PASS_DECLARATION:
ChildPassDeclaration(node, child);
break;
case (int) HlslConstants.PASS_INSTRUCTIONS:
ChildPassInstructions(node, child);
break;
case (int) HlslConstants.STRUCT_DECLARATION:
ChildStructDeclaration(node, child);
break;
case (int) HlslConstants.FUNCTION_OR_VARIABLE_DECLARATION:
ChildFunctionOrVariableDeclaration(node, child);
break;
case (int) HlslConstants.VARIABLE_DECLARATION_PART:
ChildVariableDeclarationPart(node, child);
break;
case (int) HlslConstants.FUNCTION_PART:
ChildFunctionPart(node, child);
break;
case (int) HlslConstants.PARAMETERS:
ChildParameters(node, child);
break;
case (int) HlslConstants.LIST_OF_PARAMS:
ChildListOfParams(node, child);
break;
case (int) HlslConstants.FUNCTION_PARAM:
ChildFunctionParam(node, child);
break;
case (int) HlslConstants.FUNCTION_BODY:
ChildFunctionBody(node, child);
break;
case (int) HlslConstants.STATEMENT:
ChildStatement(node, child);
break;
case (int) HlslConstants.IF_STATEMENT:
ChildIfStatement(node, child);
break;
case (int) HlslConstants.SWITCH_STATEMENT:
ChildSwitchStatement(node, child);
break;
case (int) HlslConstants.CASE_STATEMENT:
ChildCaseStatement(node, child);
break;
case (int) HlslConstants.WHILE_STATEMENT:
ChildWhileStatement(node, child);
break;
case (int) HlslConstants.DO_STATEMENT:
ChildDoStatement(node, child);
break;
case (int) HlslConstants.FOR_STATEMENT:
ChildForStatement(node, child);
break;
case (int) HlslConstants.PRE_PROCESSOR_DIRECTIVES:
ChildPreProcessorDirectives(node, child);
break;
case (int) HlslConstants.STATEMENT_SCOPE:
ChildStatementScope(node, child);
break;
case (int) HlslConstants.VARIABLE_DECLARATION:
ChildVariableDeclaration(node, child);
break;
case (int) HlslConstants.RETURN_STATEMENT:
ChildReturnStatement(node, child);
break;
case (int) HlslConstants.VARIABLE_ASSIGNMENT:
ChildVariableAssignment(node, child);
break;
case (int) HlslConstants.VARIABLE_ASSIGNMENT_WITHOUT_DOT_COMMA:
ChildVariableAssignmentWithoutDotComma(node, child);
break;
case (int) HlslConstants.CONDITION:
ChildCondition(node, child);
break;
case (int) HlslConstants.INITIALIZERS:
ChildInitializers(node, child);
break;
case (int) HlslConstants.EXPRESSION:
ChildExpression(node, child);
break;
case (int) HlslConstants.EXPRESSION_TAIL:
ChildExpressionTail(node, child);
break;
//.........这里部分代码省略.........