コード例 #1
0
        private string GetSequentialCode(VHDLCompilerInterface compiler, SequentialStatement st)
        {
            SequentialStatementObserver observer = new SequentialStatementObserver(st, logger);

            observer.Observe(compiler);
            return(observer.code);
        }
コード例 #2
0
 public void ObserveSequentialStatements(VHDLCompilerInterface compiler, IList <SequentialStatement> statements)
 {
     methodName = process.Label;
     foreach (SequentialStatement statement in statements)
     {
         SequentialStatementObserver stObserver = new SequentialStatementObserver(statement, logger);
         stObserver.Observe(compiler);
         if (string.IsNullOrEmpty(stObserver.Code) == false)
         {
             this.statements.Add(stObserver.Code);
         }
     }
 }