public static Doc Print(ConstructorConstraintSyntax node)
 {
     return(Doc.Concat(
                Token.Print(node.NewKeyword),
                Token.Print(node.OpenParenToken),
                Token.Print(node.CloseParenToken)
                ));
 }
 private Doc PrintConstructorConstraintSyntax(
     ConstructorConstraintSyntax node)
 {
     return(Concat(
                this.PrintSyntaxToken(node.NewKeyword),
                this.PrintSyntaxToken(node.OpenParenToken),
                this.PrintSyntaxToken(node.CloseParenToken)
                ));
 }
Beispiel #3
0
        public override void VisitConstructorConstraint(ConstructorConstraintSyntax node)
        {
            if (!PreVisit(node))
            {
                return;
            }

            base.VisitConstructorConstraint(node);

            PostVisit(node);
        }
Beispiel #4
0
 private void StoreConstructorConstraint(ConstructorConstraintSyntax syntax,
                                         RDomTypeParameter newItem)
 {
     newItem.HasConstructorConstraint = true;
     CreateFromWorker.StoreWhitespaceForFirstAndLastToken(newItem, syntax, LanguagePart.Current, LanguageElement.ConstructorConstraint);
     CreateFromWorker.StoreListMemberWhitespace(syntax,
                                                SyntaxKind.CommaToken, LanguageElement.ConstructorConstraint, newItem);
     //var whitespace2 = newItem.Whitespace2Set[LanguageElement.ConstructorConstraint];
     //if (string.IsNullOrEmpty(whitespace2.LeadingWhitespace))
     //{
     //   var prevNodeOrToken = syntax.Parent
     //                             .ChildNodesAndTokens()
     //                             .PreviousSiblings(syntax)
     //                             .LastOrDefault();
     //   var sepKind = SyntaxKind.CommaToken;
     //   if (prevNodeOrToken.Kind() == sepKind)
     //   {
     //      var commaToken = prevNodeOrToken.AsToken();
     //      whitespace2.LeadingWhitespace = commaToken.TrailingTrivia.ToString();
     //   }
     //}
 }
Beispiel #5
0
 public override Ust VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     throw new InvalidOperationException();
 }
Beispiel #6
0
 public override void VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     base.VisitConstructorConstraint(node);
 }
Beispiel #7
0
 public override void VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     throw new NotImplementedException();
 }
 public virtual void VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     DefaultVisit(node);
 }
Beispiel #9
0
        public static ConstructorConstraintSyntax ConstructorConstraint()
        {
            var result = new ConstructorConstraintSyntax();

            return result;
        }
 public TameConstructorConstraintSyntax(ConstructorConstraintSyntax node)
 {
     Node = node;
     AddChildren();
 }
        public void VisitConstructorConstraint(ConstructorConstraintSyntax node)
        {
            if (node == null)
                throw new ArgumentNullException("node");

            node.Validate();

            _writer.WriteKeyword(PrinterKeyword.New);
            _writer.WriteSyntax(Syntax.OpenParen);
            _writer.WriteSyntax(Syntax.CloseParen);
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 public override sealed void VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     this.OnNodeVisited(node, this.type.IsInstanceOfType(node));
     base.VisitConstructorConstraint(node);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 public override sealed void VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     this.OnNodeVisited(node);
     if (!this.traverseRootOnly) base.VisitConstructorConstraint(node);
 }
        //public override void VisitCompilationUnit(CompilationUnitSyntax node)
        //{
        //    base.VisitCompilationUnit(node);
        //}

        //public override void VisitConditionalAccessExpression(ConditionalAccessExpressionSyntax node)
        //{
        //    base.VisitConditionalAccessExpression(node);
        //}

        //public override void VisitConditionalExpression(ConditionalExpressionSyntax node)
        //{
        //    base.VisitConditionalExpression(node);
        //}

        //public override void VisitConstantPattern(ConstantPatternSyntax node)
        //{
        //    base.VisitConstantPattern(node);
        //}

        public override void VisitConstructorConstraint(ConstructorConstraintSyntax node)
        {
            Debug.Fail(node.ToString());
            base.VisitConstructorConstraint(node);
        }
Beispiel #15
0
 public override SyntaxNode VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     node = (ConstructorConstraintSyntax)base.VisitConstructorConstraint(node);
     Classes.Add(node);
     return(node);
 }
Beispiel #16
0
 public override Evaluation VisitConstructorConstraint(ConstructorConstraintSyntax node)
 {
     return(base.VisitConstructorConstraint(node));
 }
 //
 // Summary:
 //     Called when the visitor visits a ConstructorConstraintSyntax node.
 public virtual void VisitConstructorConstraint(ConstructorConstraintSyntax node);