Skip to content

Commit

Permalink
fix: group properties were not being resolved as members (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelday authored Mar 23, 2019
1 parent 17667b3 commit 207c403
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static IEnumerable<PapyrusSymbol> GetScriptMemberSymbols(this ScriptSymbo

if (!globalOnly)
{
var kindFilter = SymbolKinds.Property | SymbolKinds.Function | SymbolKinds.Struct;
var kindFilter = SymbolKinds.Property | SymbolKinds.Function | SymbolKinds.Struct | SymbolKinds.Group;
if (includeDeclaredPrivates)
{
kindFilter |= SymbolKinds.Variable | SymbolKinds.Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public void GetReferencableSymbols_FunctionBody()
{
var symbols = GetReferencableSymbolsAtMarker("function-body");
symbols.AssertAreOfKinds(SymbolKinds.Script | SymbolKinds.Struct | SymbolKinds.Function | SymbolKinds.Variable | SymbolKinds.Property);

#if FALLOUT4
Assert.IsNotNull(symbols.SingleOrDefault(s => s.Name == "GroupProperty"));
#endif
}

[TestMethod]
Expand Down
4 changes: 4 additions & 0 deletions src/DarkId.Papyrus.Test/scripts/Fallout 4/BaseScript.psc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Scriptname BaseScript extends ScriptObject
int scriptObjectIntVariable
int Property ScriptObjectIntProperty Auto

Group PropertyGroup
int Property GroupProperty Auto
EndGroup

Struct StructA
int structIntVariable
string structStringVariable
Expand Down

0 comments on commit 207c403

Please sign in to comment.