public virtual void VisitReturnType(ReturnTypeSyntax node) { this.BeginSymbolUse(node, types: ImmutableArray.Create(typeof(MetaType))); try { this.Visit(node.TypeReference); this.Visit(node.VoidType); } finally { this.EndSymbolUse(); } }
public TypeDefinition(ReturnTypeSyntax type) { if (type.VoidKeyword != null) { this.Type = SyntaxType.VoidKeyword; this.ArraySpecifiers = new List <ColoredString>(); } else { this.Type = type.TypeSyntax.TypeNonArray.Children[0].SyntaxType; List <ColoredString> arraySpecifiers = new List <ColoredString>(); for (int i = 0; i < type.TypeSyntax.ArraySpecifiers.Count; i++) { arraySpecifiers.AddRange(type.TypeSyntax.ArraySpecifiers[i].ToColoredString()); } this.ArraySpecifiers = arraySpecifiers; } }
public virtual void VisitReturnType(ReturnTypeSyntax node) { }