Пример #1
0
    public void DetectTypeCode(VeinTypeCode code, object value)
    {
        var str    = value.ToString();
        var result =
            FieldDeclaratorSyntax.RedefineIntegerExpression(new UndefinedIntegerNumericLiteral(str)
                                                            .SetPos(new Position(0, 0, 0), 0), false);

        Assert.AreEqual(code, result.GetTypeCode());
    }
Пример #2
0
 public override void VisitFieldDeclarator(FieldDeclaratorSyntax node)
 {
     Append("{0}", node.Identifier);
     if (node.Expression != null)
     {
         Append(" = ");
         node.Expression?.Accept(this);
     }
 }
Пример #3
0
 public virtual void VisitFieldDeclarator(FieldDeclaratorSyntax node) => DefaultVisit(node);
Пример #4
0
 public void VisitFieldDeclarator(FieldDeclaratorSyntax fieldDeclaratorSyntax)
 {
     throw new NotImplementedException();
 }