- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isDirective (0.27 sec)
-
src/go/printer/comment.go
out = append(out, &ast.Comment{ Slash: slash, Text: c.Text, }) } } return out } // isDirective reports whether c is a comment directive. // See go.dev/issue/37974. // This code is also in go/ast. func isDirective(c string) bool { // "//line " is a line directive. // "//extern " is for gccgo. // "//export " is for cgo. // (The // has been removed.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 07:35:19 UTC 2022 - 3.5K bytes - Viewed (0) -
src/go/ast/ast_test.go
{"go:x*", true}, {"export foo", true}, {"extern foo", true}, {"expert foo", false}, } func TestIsDirective(t *testing.T) { for _, tt := range isDirectiveTests { if ok := isDirective(tt.in); ok != tt.ok { t.Errorf("isDirective(%q) = %v, want %v", tt.in, ok, tt.ok) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 22:03:44 UTC 2022 - 2.2K bytes - Viewed (0) -
src/go/ast/ast.go
if n > 0 && lines[n-1] != "" { lines = append(lines, "") } return strings.Join(lines, "\n") } // isDirective reports whether c is a comment directive. // This code is also in go/printer. func isDirective(c string) bool { // "//line " is a line directive. // "//extern " is for gccgo. // "//export " is for cgo. // (The // has been removed.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
test-site/activator-launch-1.3.2.jar
ManifestHeaderValue$ManifestHeaderParser { private final String header; private int length; private StringBuffer buffer; private int pos; private char c; private ManifestHeaderElemen elem; private boolean valuesParsed; private String paramName; private boolean isDirective; void ManifestHeaderValue$ManifestHeaderParser(ManifestHeaderValue, String); final void parse(); private char readNext(); private void error(String); private static void error(String, int); private void endValue(); private void endParameterValue();...
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 1.2M bytes - Viewed (1)