@@ -624,7 +624,11 @@ public int Compare(Tuple<int, int> t1, Tuple<int, int> t2)
624
624
/// </summary>
625
625
public class FindPipelineOutput : ICustomAstVisitor
626
626
{
627
+ < << << << HEAD
627
628
List < Tuple < string , StatementAst > > outputTypes;
629
+ == == == =
630
+ List < string > outputTypes ;
631
+ > >>> >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
628
632
629
633
IEnumerable < TypeDefinitionAst > classes ;
630
634
@@ -665,7 +669,11 @@ static FindPipelineOutput()
665
669
/// <param name="ast"></param>
666
670
public FindPipelineOutput ( FunctionDefinitionAst ast , IEnumerable < TypeDefinitionAst > classes )
667
671
{
672
+ < << << << HEAD
668
673
outputTypes = new List < Tuple < string , StatementAst > > ( ) ;
674
+ = == == ==
675
+ outputTypes = new List < string > ( ) ;
676
+ > >>> >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
669
677
Helper . Instance . InitializeVariableAnalysis ( ast ) ;
670
678
this . classes = classes ;
671
679
myFunction = ast ;
@@ -677,12 +685,24 @@ public FindPipelineOutput(FunctionDefinitionAst ast, IEnumerable<TypeDefinitionA
677
685
}
678
686
679
687
/// <summary>
688
+ < << << << HEAD
680
689
/// Get list of outputTypes from functiondefinitionast funcast
681
690
/// </summary>
682
691
/// <returns></returns>
683
692
public static List < Tuple < string , StatementAst > > OutputTypes ( FunctionDefinitionAst funcAst , IEnumerable < TypeDefinitionAst > classes )
684
693
{
685
694
return ( new FindPipelineOutput ( funcAst , classes ) ) . outputTypes ;
695
+ = == == ==
696
+ /// Get list of outputTypes
697
+ /// </summary>
698
+ /// <returns></returns>
699
+ public List< string > OutputTypes
700
+ {
701
+ get
702
+ {
703
+ return outputTypes;
704
+ }
705
+ >>> > >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
686
706
}
687
707
688
708
/// <summary>
@@ -807,12 +827,20 @@ public object VisitNamedBlock(NamedBlockAst namedBlockAst)
807
827
{
808
828
if ( namedBlockAst ! = null )
809
829
{
830
+ << << << < HEAD
810
831
foreach ( StatementAst block in namedBlockAst . Statements )
832
+ == == == =
833
+ foreach ( var block in namedBlockAst . Statements )
834
+ >>> >>> > 01 a9d251e1344f53c7a881fccacc5123ce02827a
811
835
{
812
836
object type = block . Visit ( this ) ;
813
837
if ( type != null && type is string && ! String . IsNullOrWhiteSpace ( type as string ) )
814
838
{
839
+ << < << < < HEAD
815
840
outputTypes. Add ( Tuple . Create ( type as string , block ) ) ;
841
+ == = == ==
842
+ outputTypes . Add ( type as string ) ;
843
+ >>> > >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
816
844
}
817
845
}
818
846
}
@@ -829,12 +857,20 @@ public object VisitStatementBlock(StatementBlockAst statementBlockAst)
829
857
{
830
858
if ( statementBlockAst != null )
831
859
{
860
+ << < << < < HEAD
832
861
foreach ( StatementAst block in statementBlockAst . Statements )
862
+ == = == ==
863
+ foreach ( var block in statementBlockAst . Statements )
864
+ >>> > >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
833
865
{
834
866
object type = block. Visit( this ) ;
835
867
if ( type ! = null && type is string && ! String . IsNullOrWhiteSpace ( type as string ) )
836
868
{
869
+ < << << << HEAD
837
870
outputTypes . Add( Tuple . Create ( type as string, block ) ) ;
871
+ == == == =
872
+ outputTypes . Add ( type as string ) ;
873
+ >>> > >>> 01 a9d251e1344f53c7a881fccacc5123ce02827a
838
874
}
839
875
}
840
876
}
0 commit comments