Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,559 for comment1 (0.28 sec)

  1. src/text/scanner/example_test.go

    }
    
    func Example_mode() {
    	const src = `
        // Comment begins at column 5.
    
    This line should not be included in the output.
    
    /*
    This multiline comment
    should be extracted in
    its entirety.
    */
    `
    
    	var s scanner.Scanner
    	s.Init(strings.NewReader(src))
    	s.Filename = "comments"
    	s.Mode ^= scanner.SkipComments // don't skip comments
    
    	for tok := s.Scan(); tok != scanner.EOF; tok = s.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 02:01:58 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

            discussion_commentors: dict[str, datetime] = {}
            for comment in discussion.comments.nodes:
                if comment.author:
                    authors[comment.author.login] = comment.author
                    if comment.author.login != discussion_author_name:
                        author_time = discussion_commentors.get(
                            comment.author.login, comment.createdAt
                        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 17:38:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. src/go/doc/example.go

    	var comments []*ast.CommentGroup
    	for _, s := range blankImports {
    		if c := s.(*ast.ImportSpec).Doc; c != nil {
    			comments = append(comments, c)
    		}
    	}
    
    	// Include comments that are inside the function body.
    	for _, c := range file.Comments {
    		if body.Pos() <= c.Pos() && c.End() <= body.End() {
    			comments = append(comments, c)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/go/ast/filter.go

    			imports = append(imports, f.Imports...)
    		}
    	}
    
    	// Collect comments from all package files.
    	var comments []*CommentGroup
    	if mode&FilterUnassociatedComments == 0 {
    		comments = make([]*CommentGroup, ncomments)
    		i := 0
    		for _, filename := range filenames {
    			f := pkg.Files[filename]
    			i += copy(comments[i:], f.Comments)
    		}
    	}
    
    	// TODO(gri) need to compute unresolved identifiers!
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/go/ast/issues_test.go

    package p
    
    ... `, false},
    		// Special comment has rogue interior space.
    		{`//     Code generated by gen. DO NOT EDIT.
    package p
    `, false},
    		// Special comment lacks the middle portion.
    		{`// Code generated DO NOT EDIT.
    package p
    `, false},
    		// Special comment (incl. "//") appears within a /* block */ comment,
    		// an obscure corner case of the spec.
    		{`/* start of a general comment
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 13:57:33 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. src/cmd/gofmt/testdata/import.golden

    	"dedup_by_group"
    )
    
    import (
    	"fmt" // for Printf
    	/* comment */ io1 "io"
    	/* comment */ io2 "io"
    	/* comment */ "log"
    )
    
    import (
    	"fmt"
    	/* comment */ io1 "io"
    	/* comment */ io2 "io" // hello
    	"math"                 /* right side */
    	// end
    )
    
    import (
    	"errors" // for New
    	"fmt"
    	/* comment */ io1 "io" /* before */ // after
    	io2 "io"               // another
    	// end
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 23:33:26 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    }
    
    // parseDirectiveComment extracts the text of comments on a directive.
    // If the directive's line does not have comments and is part of a block that
    // does have comments, the block's comments are used.
    func parseDirectiveComment(block *LineBlock, line *Line) string {
    	comments := line.Comment()
    	if block != nil && len(comments.Before) == 0 && len(comments.Suffix) == 0 {
    		comments = block.Comment()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        public void store(final OutputStream out, final String comments) throws IOException {
            getProperties().store(out, comments);
        }
    
        @Override
        public void store(final Writer writer, final String comments) throws IOException {
            getProperties().store(writer, comments);
        }
    
        @Override
        public void storeToXML(final OutputStream os, final String comment, final String encoding) throws IOException {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/mod/example.com_retract_rationale_v1.9.0.txt

    retract v1.0.0-long
    
    // Ends with a BEL character. Beep!
    retract v1.0.0-unprintable
    
    // block comment
    retract (
    	v1.0.0-block
    
    	// inner comment
    	v1.0.0-blockwithcomment
    )
    
    retract (
    	[v1.0.0-order, v1.0.0-order] // degenerate range
    	v1.0.0-order // single version
    
    	v1.0.1-order // single version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 21:17:11 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/scanner.go

    // never starts with a '/'. The error handler must exist.
    //
    // If the scanner mode includes the comments flag and a comment
    // (including comments containing directives) is encountered, the
    // error handler is also called with each comment position and text
    // (including opening /* or // and closing */, but without a newline
    // at the end of line comments). Comment text always starts with a /
    // which can be used to distinguish these handler calls from errors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
Back to top