コード例 #1
0
ファイル: FunctionCompiler.cs プロジェクト: iwatakeshi/Iodine
 public void Accept(YieldStatement yieldStmt)
 {
     visitSubnodes (yieldStmt);
     methodBuilder.Generator = true;
     methodBuilder.EmitInstruction (yieldStmt.Location, Opcode.Yield);
 }
コード例 #2
0
		public override void Accept (YieldStatement yieldStmt)
		{
			yieldStmt.VisitChildren (this);
			methodBuilder.Generator = true;
			methodBuilder.EmitInstruction (yieldStmt.Location, Opcode.Yield);
		}
コード例 #3
0
ファイル: ModuleCompiler.cs プロジェクト: iwatakeshi/Iodine
 public void Accept(YieldStatement yieldStmt)
 {
     yieldStmt.Visit (functionCompiler);
 }
コード例 #4
0
		public override void Accept (YieldStatement yieldStmt)
		{
			errorLog.AddError (ErrorType.ParserError, yieldStmt.Location,
				"statement can not exist inside pattern!");
		}
コード例 #5
0
 public virtual void Accept(YieldStatement yieldStmt)
 {
 }
コード例 #6
0
ファイル: FunctionAnalyser.cs プロジェクト: iwatakeshi/Iodine
 public void Accept(YieldStatement yieldStmt)
 {
     yieldStmt.VisitChildren (this);
 }
コード例 #7
0
ファイル: RootAnalyser.cs プロジェクト: iwatakeshi/Iodine
 public void Accept(YieldStatement yieldStmt)
 {
     errorLog.AddError (ErrorType.ParserError, yieldStmt.Location,
         "Statement not allowed outside function body!");
 }