Пример #1
0
            public override void VisitMethodDeclaration(MethodDeclarationSyntax node)
            {
                base.VisitMethodDeclaration(node);

                string fullName = SyntaxUtils.GetFullName(node) + "::return";
                string type     = node.ReturnType.ToString();

                this.CacheInfo(fullName, type);
            }
Пример #2
0
            public override void VisitParameter(ParameterSyntax node)
            {
                base.VisitParameter(node);

                string fullName = SyntaxUtils.GetFullName(node);
                string type     = node.Type.ToString();

                this.CacheInfo(node.AttributeLists, fullName, type);
            }
Пример #3
0
            public override void VisitFieldDeclaration(FieldDeclarationSyntax node)
            {
                if (!(node.Parent is StructDeclarationSyntax))
                {
                    return;
                }

                base.VisitFieldDeclaration(node);

                var    variable = node.Declaration.Variables.First();
                string type     = node.Declaration.Type.ToString();

                string fullName = SyntaxUtils.GetFullName(variable);

                this.CacheInfo(node.AttributeLists, fullName, type);
            }