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