예제 #1
0
파일: TestHelper.cs 프로젝트: tmteam/NFun
 public static void AssertNode(this ITicResults results, TicNode generic, params int[] nodeIds)
 {
     foreach (var id in nodeIds)
     {
         Assert.AreEqual(generic.GetNonReference(), results.GetSyntaxNodeOrNull(id).GetNonReference());
     }
 }
예제 #2
0
 public static void AssertNode(this ITicResults results, ITypeState type, params int[] nodeIds)
 {
     foreach (var id in nodeIds)
     {
         Assert.AreEqual(type, results.GetSyntaxNodeOrNull(id).GetNonReference().State);
     }
 }
예제 #3
0
파일: TestHelper.cs 프로젝트: tmteam/NFun
 public static void AssertNode(this ITicResults results, ITypeState type, params int[] nodeIds)
 {
     foreach (var id in nodeIds)
     {
         var actual = results.GetSyntaxNodeOrNull(id).State;
         AssertNodeStateEqualToState(type, actual, id);
     }
 }
예제 #4
0
 public ITicNodeState GetSyntaxNodeTypeOrNull(int id)
 => _bodyTypeSolving.GetSyntaxNodeOrNull(id)?.State;