Ok so maybe that one commit wasn't entirely true
This commit is contained in:
parent
e2367b26c2
commit
0684410631
|
@ -210,8 +210,10 @@ testStringSkim (test,
|
|||
+ ComplexType: (. parser:Parser tree:*Tree skim:Bool)
|
||||
+ X: Int
|
||||
+ X.[pub]:Int
|
||||
- X.[priv]:Int
|
||||
+ X.[alreadyExternal]
|
||||
+ [alreadyExternal]
|
||||
- [priv]
|
||||
+ [pub]:X`,
|
||||
// input
|
||||
`- PrivType:Int
|
||||
|
|
|
@ -37,9 +37,7 @@ func (this *treeParser) parseTopLevel () error {
|
|||
if this.Is(lexer.LBracket) {
|
||||
function, err := this.parseFunctionCore(pos, access)
|
||||
if err != nil { return err }
|
||||
if !this.skim || function.Acc != entity.AccessPrivate {
|
||||
this.tree.AddDeclaration(function)
|
||||
}
|
||||
this.tree.AddDeclaration(function)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -55,9 +53,7 @@ func (this *treeParser) parseTopLevel () error {
|
|||
if err != nil { return err }
|
||||
method, err := this.parseMethodCore(pos, access, typeName)
|
||||
if err != nil { return err }
|
||||
if !this.skim || method.Acc != entity.AccessPrivate {
|
||||
this.tree.AddDeclaration(method)
|
||||
}
|
||||
this.tree.AddDeclaration(method)
|
||||
case lexer.Colon:
|
||||
// Colon: Typedef
|
||||
err = this.ExpectNextDesc(descriptionType, startTokensType...)
|
||||
|
|
Loading…
Reference in New Issue