Exemplo n.º 1
0
        private BoundNode BindTypedefStatement(TypedefStatementSyntax declaration)
        {
            var boundType = Bind(declaration.Type, x => BindType(x, null));

            var boundDeclarations = new List<BoundTypeAlias>();
            foreach (var declarator in declaration.Declarators)
            {
                boundDeclarations.Add(Bind(declarator, x => BindTypeAlias(x, boundType.TypeSymbol)));
            }

            return new BoundTypedefStatement(boundDeclarations.ToImmutableArray());
        }
Exemplo n.º 2
0
        private BoundNode BindTypedefStatement(TypedefStatementSyntax declaration)
        {
            var boundType = Bind(declaration.Type, x => BindType(x, null));

            var boundDeclarations = new List <BoundTypeAlias>();

            foreach (var declarator in declaration.Declarators)
            {
                boundDeclarations.Add(Bind(declarator, x => BindTypeAlias(x, boundType.TypeSymbol)));
            }

            return(new BoundTypedefStatement(boundDeclarations.ToImmutableArray()));
        }
Exemplo n.º 3
0
        public override void VisitTypedefStatement(TypedefStatementSyntax node)
        {
            var symbol = _semanticModel.GetSymbol(node.Type);

            if (symbol != null)
            {
                var classificationType = GetClassificationType(symbol);
                foreach (var declarator in node.Declarators)
                {
                    CreateTag(declarator.Identifier, classificationType);
                }
            }
            base.VisitTypedefStatement(node);
        }
Exemplo n.º 4
0
 public virtual void VisitTypedefStatement(TypedefStatementSyntax node)
 {
     DefaultVisit(node);
 }
Exemplo n.º 5
0
 public virtual void VisitTypedefStatement(TypedefStatementSyntax node)
 {
     DefaultVisit(node);
 }