51 {
52
53
54
55
56
57
58
59 return (
60 (strcmp(script_uri, "analyze") == 0) ||
61 (strcmp(script_uri, "compilation-server") == 0) ||
62 (strcmp(script_uri, "build") == 0) ||
63 (strcmp(script_uri, "compile") == 0) ||
64 (strcmp(script_uri, "create") == 0) ||
65 (strcmp(script_uri, "development-service") == 0) ||
66 (strcmp(script_uri, "devtools") == 0) ||
67 (strcmp(script_uri, "doc") == 0) || (strcmp(script_uri, "fix") == 0) ||
68 (strcmp(script_uri, "format") == 0) ||
69 (strcmp(script_uri, "info") == 0) || (strcmp(script_uri, "pub") == 0) ||
70 (strcmp(script_uri, "run") == 0) || (strcmp(script_uri, "test") == 0) ||
71 (strcmp(script_uri, "info") == 0) ||
72 (strcmp(script_uri, "language-server") == 0) ||
73 (strcmp(script_uri, "tooling-daemon") == 0) ||
75 (strncmp(script_uri, "http://", 7) != 0) &&
76 (strncmp(script_uri, "https://", 8) != 0) &&
77 (strncmp(script_uri, "file://", 7) != 0) &&
78 (strncmp(script_uri, "package:", 8) != 0) &&
79 (strncmp(script_uri, "google3://", 10) != 0)));
80}
static bool ExistsUri(Namespace *namespc, const char *uri)