CodeGeneration.CGenState.CaseLabel C# (CSharp) Method

CaseLabel() public method

public CaseLabel ( Int32 value ) : Int32
value System.Int32
return System.Int32
        public Int32 CaseLabel(Int32 value) => this.label_packs.First(_ => _.value_to_label != null).value_to_label[value];
        // label_packs.First().value_to_label[Value];

Usage Example

コード例 #1
0
ファイル: Statements.cs プロジェクト: phisiart/C-Compiler
 public override void CGenStmt(Env env, CGenState state) {
     Int32 label = state.CaseLabel(this.Value);
     state.CGenLabel(label);
     this.Stmt.CGenStmt(env, state);
 }