Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
code review 6445068: exp/types: set non-embedded method type during GcImport. (issue 6445068)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
remyoudomph...@gmail.com  
View profile  
 More options Aug 2 2012, 5:58 pm
From: remyoudomph...@gmail.com
Date: Thu, 02 Aug 2012 21:58:29 +0000
Local: Thurs, Aug 2 2012 5:58 pm
Subject: code review 6445068: exp/types: set non-embedded method type during GcImport. (issue 6445068)
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com),

I'd like you to review this change to
https://go.googlecode.com/hg/

Description:
exp/types: set non-embedded method type during GcImport.

Please review this at http://codereview.appspot.com/6445068/

Affected files:
   M src/pkg/exp/types/gcimporter.go

Index: src/pkg/exp/types/gcimporter.go
===================================================================
--- a/src/pkg/exp/types/gcimporter.go
+++ b/src/pkg/exp/types/gcimporter.go
@@ -510,11 +510,12 @@
  // MethodOrEmbedSpec = Name [ Signature ] .
  //
  func (p *gcParser) parseMethodOrEmbedSpec() *ast.Object {
-       p.parseName()
+       name := p.parseName()
        if p.tok == '(' {
-               p.parseSignature()
-               // TODO(gri) compute method object
-               return ast.NewObj(ast.Fun, "_")
+               typ := p.parseSignature()
+               obj := ast.NewObj(ast.Fun, name)
+               obj.Type = typ
+               return obj
        }
        // TODO lookup name and return that type
        return ast.NewObj(ast.Typ, "_")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
g...@golang.org  
View profile  
 More options Aug 2 2012, 7:19 pm
From: g...@golang.org
Date: Thu, 02 Aug 2012 23:19:12 +0000
Local: Thurs, Aug 2 2012 7:19 pm
Subject: Re: code review 6445068: exp/types: set non-embedded method type during GcImport. (issue 6445068)
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
g...@golang.org  
View profile  
 More options Aug 2 2012, 7:24 pm
From: g...@golang.org
Date: Thu, 02 Aug 2012 23:24:16 +0000
Local: Thurs, Aug 2 2012 7:24 pm
Subject: Re: code review 6445068: exp/types: set non-embedded method type during GcImport. (issue 6445068)
*** Submitted as
http://code.google.com/p/go/source/detail?r=24e1714dc458 ***

exp/types: set non-embedded method type during GcImport.

R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/6445068

Committer: Robert Griesemer <g...@golang.org>

http://codereview.appspot.com/6445068/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »