当前位置: 首页>>代码示例>>C#>>正文


C# Production.GetId方法代码示例

本文整理汇总了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;
//.........这里部分代码省略.........
开发者ID:SickheadGames,项目名称:HL2GLSL,代码行数:101,代码来源:HlslAnalyzer.cs


注:本文中的Production.GetId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。