Пример #1
0
        public override void VisitRecordDeclaration(RecordDeclarationSyntax node)
        {
            Debug.Assert(node.ParameterList is object);
            Debug.Assert(node.IsKind(SyntaxKind.RecordDeclaration));

            Binder enclosing = new ExpressionVariableBinder(node, _enclosing);

            AddToMap(node, enclosing);
            Visit(node.PrimaryConstructorBaseTypeIfClass, enclosing);
        }
Пример #2
0
        public override void VisitRecordDeclaration(RecordDeclarationSyntax node)
        {
            Debug.Assert(node.ParameterList is object);
            Debug.Assert(node.IsKind(SyntaxKind.RecordDeclaration));

            if (node.PrimaryConstructorBaseTypeIfClass is PrimaryConstructorBaseTypeSyntax baseWithArguments)
            {
                VisitNodeToBind(baseWithArguments);
            }
        }