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()); }
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())); }
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); }
public virtual void VisitTypedefStatement(TypedefStatementSyntax node) { DefaultVisit(node); }