public override void VisitNamespaceSymbol(NamespaceSymbol symbol)
 {
     base.VisitNamespaceSymbol(symbol);
     this.CollectDiagnostics(symbol);
 }
Example #2
0
 public static Symbol ResolveNamespaceQualifiedFunction(FunctionFlags allowedFlags, Symbol?foundSymbol, IdentifierSyntax identifierSyntax, NamespaceSymbol namespaceSymbol)
 => ResolveSymbolInternal(
     allowedFlags,
     foundSymbol,
     identifierSyntax,
     getNameSuggestions: () => namespaceSymbol.Type.MethodResolver.GetKnownFunctions().Keys,
     getMissingNameError: (builder, suggestedName) => suggestedName switch {
     null => builder.FunctionDoesNotExistInNamespace(namespaceSymbol, identifierSyntax.IdentifierName),
Example #3
0
 public virtual void VisitNamespaceSymbol(NamespaceSymbol symbol)
 {
     VisitDescendants(symbol);
 }