@@ -12,7 +12,8 @@ public void ResolvedTree_PropertyDirectiveHalfWritten_AttributeResolved()
1212 {
1313 var root = ParseSource ( @$ "
1414@viewModel object
15- @property string MyProperty, , DotVVM., DotVVM.Fra = , DotVVM.Framework.Controls.MarkupOptionsAttribute.Required = t" ) ;
15+ @property string MyProperty, , DotVVM., DotVVM.Fra = , DotVVM.Framework.Controls.MarkupOptionsAttribute.Required = t" ,
16+ fileName : "x.dotcontrol" ) ;
1617
1718 var property = root . Directives [ "property" ] . SingleOrDefault ( ) as IAbstractPropertyDeclarationDirective ;
1819
@@ -32,7 +33,8 @@ public void ResolvedTree_PropertyDirectiveIncompatibleType_ErrorReported()
3233 {
3334 var root = ParseSource ( @$ "
3435@viewModel object
35- @property string MyProperty, DotVVM.Framework.Controls.MarkupOptionsAttribute.Required = 1" ) ;
36+ @property string MyProperty, DotVVM.Framework.Controls.MarkupOptionsAttribute.Required = 1" ,
37+ fileName : "x.dotcontrol" ) ;
3638
3739 var property = root . Directives [ "property" ] . SingleOrDefault ( ) as IAbstractPropertyDeclarationDirective ;
3840
@@ -52,7 +54,8 @@ public void ResolvedTree_PropertyDirectiveInvalidArrayInicializer_ResolvedCorrec
5254 {
5355 var root = ParseSource ( @$ "
5456@viewModel object
55- @property string a=[, MarkupOptionsAttribute.Required = true" ) ;
57+ @property string a=[, MarkupOptionsAttribute.Required = true" ,
58+ fileName : "x.dotcontrol" ) ;
5659
5760 var property = root . Directives [ "property" ] . SingleOrDefault ( ) as IAbstractPropertyDeclarationDirective ;
5861
@@ -69,7 +72,7 @@ public void ResolvedTree_PropertyDirectiveArrayInicializerAndAttributes_Resolved
6972 var root = ParseSource ( """
7073@viewModel object
7174@property string[] MyProperty=["",""], MarkupOptionsAttribute.Required = true, MarkupOptionsAttribute.AllowBinding = false
72- """ ) ;
75+ """ , fileName : "x.dotcontrol" ) ;
7376
7477 var property = root . Directives [ "property" ] . SingleOrDefault ( ) as IAbstractPropertyDeclarationDirective ;
7578
@@ -114,7 +117,7 @@ public void ResolvedTree_PropertyDirective_InvalidType_DoesNotDuplicateError()
114117 {
115118 var root = ParseSource ( @"@viewModel object
116119@property invalidType MyProperty
117- " ) ;
120+ " , fileName : "x.dotcontrol" ) ;
118121
119122 var property = root . Directives [ "property" ] . Single ( ) as IAbstractPropertyDeclarationDirective ;
120123
@@ -127,7 +130,7 @@ public void ResolvedTree_PropertyDirective_InvalidAttributeType_ErrorReported()
127130 {
128131 var root = ParseSource ( @"@viewModel object
129132@property string MyProperty, DotVVM.Framework.Controls.NonExistingAttribute.Required = true
130- " ) ;
133+ " , fileName : "x.dotcontrol" ) ;
131134
132135 var property = root . Directives [ "property" ] . Single ( ) as IAbstractPropertyDeclarationDirective ;
133136
0 commit comments