Author: rolf
Date: 2007-06-22 12:18:39 -0400 (Fri, 22 Jun 2007)
New Revision: 80561

Modified:
   trunk/mono-basic/vbnc/vbnc/source/ChangeLog
   trunk/mono-basic/vbnc/vbnc/source/Expressions/MemberAccessExpression.vb
   trunk/mono-basic/vbnc/vbnc/source/Expressions/SimpleNameExpression.vb
   trunk/mono-basic/vbnc/vbnc/source/General/AssemblyInfo.vb
   trunk/mono-basic/vbnc/vbnc/source/General/Message.vb
   trunk/mono-basic/vbnc/vbnc/source/General/Messages.vb
   trunk/mono-basic/vbnc/vbnc/source/General/TypeConverter.vb
   trunk/mono-basic/vbnc/vbnc/source/Members/EventMemberSpecifier.vb
   trunk/mono-basic/vbnc/vbnc/source/Parser/Parser.vb
   trunk/mono-basic/vbnc/vbnc/source/Resources/Errors.resx
   trunk/mono-basic/vbnc/vbnc/source/Resources/GenerateCodeAndResX.sh
   trunk/mono-basic/vbnc/vbnc/source/Resources/Source.xml
   trunk/mono-basic/vbnc/vbnc/source/vbnc.vbproj
Log:
* Expressions/MemberAccessExpression.vb,
  Expressions/SimpleNameExpression.vb,
  Members/EventMemberSpecifier.vb: Debug info.
* vbnc.vbproj, General/AssemblyInfo.vb: Update.
* Parser/Parser.vb: Show a real warning.
* Resources/Source.xml, Resources/Errors.resx, General/Messages.vb: Add
  a generic warning.
* General/Message.vb: Fix message string generation (wasn't including
  filename).
* General/TypeConverter.vb: Duh.

Modified: trunk/mono-basic/vbnc/vbnc/source/ChangeLog
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/ChangeLog 2007-06-22 16:10:33 UTC (rev 
80560)
+++ trunk/mono-basic/vbnc/vbnc/source/ChangeLog 2007-06-22 16:18:39 UTC (rev 
80561)
@@ -1,3 +1,16 @@
+2007-06-22  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * Expressions/MemberAccessExpression.vb,
+         Expressions/SimpleNameExpression.vb,
+         Members/EventMemberSpecifier.vb: Debug info.
+       * vbnc.vbproj, General/AssemblyInfo.vb: Update.
+       * Parser/Parser.vb: Show a real warning.
+       * Resources/Source.xml, Resources/Errors.resx, General/Messages.vb: Add
+         a generic warning.
+       * General/Message.vb: Fix message string generation (wasn't including
+         filename).
+       * General/TypeConverter.vb: Duh.
+
 2007-05-30  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * Emit/Emitter.vb: Small crasher fix.

Modified: 
trunk/mono-basic/vbnc/vbnc/source/Expressions/MemberAccessExpression.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Expressions/MemberAccessExpression.vb     
2007-06-22 16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Expressions/MemberAccessExpression.vb     
2007-06-22 16:18:39 UTC (rev 80561)
@@ -35,6 +35,16 @@
 
     Private m_WithStatement As WithStatement
 
+    Public Overrides ReadOnly Property AsString() As String
+        Get
+            If m_First IsNot Nothing Then
+                Return m_First.AsString & "." & m_Second.Identifier
+            Else
+                Return "." & m_Second.Identifier
+            End If
+        End Get
+    End Property
+
     Public Overrides ReadOnly Property IsConstant() As Boolean
         Get
             Return Classification.IsConstant

Modified: trunk/mono-basic/vbnc/vbnc/source/Expressions/SimpleNameExpression.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Expressions/SimpleNameExpression.vb       
2007-06-22 16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Expressions/SimpleNameExpression.vb       
2007-06-22 16:18:39 UTC (rev 80561)
@@ -42,6 +42,16 @@
         m_TypeArgumentList = TypeArgumentList
     End Sub
 
+    Public Overrides ReadOnly Property AsString() As String
+        Get
+            If m_TypeArgumentList Is Nothing Then
+                Return m_Identifier.Identifier
+            Else
+                Return m_Identifier.Identifier & "(Of <type arguments>)"
+            End If
+        End Get
+    End Property
+
     Public Overrides Function Clone(Optional ByVal NewParent As ParsedObject = 
Nothing) As Expression
         If NewParent Is Nothing Then NewParent = Me.Parent
         Dim result As New SimpleNameExpression(NewParent)

Modified: trunk/mono-basic/vbnc/vbnc/source/General/AssemblyInfo.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/General/AssemblyInfo.vb   2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/General/AssemblyInfo.vb   2007-06-22 
16:18:39 UTC (rev 80561)
@@ -49,4 +49,4 @@
 ' You can specify all the values or you can default the Build and Revision 
Numbers 
 ' by using the '*' as shown below:
 
-<Assembly: AssemblyVersion("0.0.0.5533")>
+<Assembly: AssemblyVersion("0.0.0.5543")>

Modified: trunk/mono-basic/vbnc/vbnc/source/General/Message.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/General/Message.vb        2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/General/Message.vb        2007-06-22 
16:18:39 UTC (rev 80561)
@@ -101,6 +101,7 @@
     ''' <param name="Message"></param>
     ''' <remarks></remarks>
     Sub New(ByVal Compiler As Compiler, ByVal Message As Messages, ByVal 
Location As Span)
+        Me.m_Compiler = Compiler
         Me.m_Message = New Messages() {Message}
         Me.m_Location = Location
         Me.m_Parameters = New String()() {}
@@ -110,6 +111,7 @@
     ''' Create a new message with the specified data.
     ''' </summary>
     Sub New(ByVal Compiler As Compiler, ByVal Message As Messages(), ByVal 
Parameters()() As String, ByVal Location As Span)
+        Me.m_Compiler = Compiler
         Me.m_Message = Message
         Me.m_Location = Location
         Me.m_Parameters = Parameters
@@ -119,6 +121,7 @@
     ''' Create a new message with the specified data.
     ''' </summary>
     Sub New(ByVal Compiler As Compiler, ByVal Message As Messages, ByVal 
Parameters() As String, ByVal Location As Span)
+        Me.m_Compiler = Compiler
         Me.m_Message = New Messages() {Message}
         Me.m_Location = Location
         If Parameters Is Nothing Then
@@ -194,23 +197,4 @@
 
         Return result
     End Function
-
-    '#If DEBUG Then
-    '    ''' <summary>
-    '    ''' Dump this message to an xmlwriter.
-    '    ''' </summary>
-    '    ''' <param name="xml"></param>
-    '    ''' <remarks></remarks>
-    '    Sub Dump(ByVal xml As Xml.XmlWriter)
-    '        xml.WriteStartElement("Message")
-    '        xml.WriteAttributeString("Level", Level.ToString)
-    '        'If Location IsNot Nothing Then 
-    '        Location.Dump(xml)
-    '        'End If
-    '        For i As Integer = 0 To m_Message.GetUpperBound(0)
-    '            xml.WriteString(Me.ToString)
-    '        Next
-    '        xml.WriteEndElement()
-    '    End Sub
-    '#End If
 End Class
\ No newline at end of file

Modified: trunk/mono-basic/vbnc/vbnc/source/General/Messages.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/General/Messages.vb       2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/General/Messages.vb       2007-06-22 
16:18:39 UTC (rev 80561)
@@ -6784,4 +6784,11 @@
     ''' <remarks></remarks>
     <Message(MessageLevel.Warning)> VBNC90023 = 90023
 
+    ''' <summary>
+    ''' VBNC = "{0}"
+    ''' VB   = "(no corresponding VB error)"
+    ''' </summary>
+    ''' <remarks></remarks>
+    <Message(MessageLevel.Warning)> VBNC99999 = 99999
+
 End Enum

Modified: trunk/mono-basic/vbnc/vbnc/source/General/TypeConverter.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/General/TypeConverter.vb  2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/General/TypeConverter.vb  2007-06-22 
16:18:39 UTC (rev 80561)
@@ -1511,6 +1511,7 @@
     RealDivision
     IntDivision
     ShiftRight
+    ShiftLeft
     ConcatAssign '             L"&="
     AddAssign 'L"+="
     MinusAssign 'L"-="

Modified: trunk/mono-basic/vbnc/vbnc/source/Members/EventMemberSpecifier.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Members/EventMemberSpecifier.vb   
2007-06-22 16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Members/EventMemberSpecifier.vb   
2007-06-22 16:18:39 UTC (rev 80561)
@@ -92,11 +92,12 @@
             'add AddHandler/RemoveHandler to withevents variable's property
             Dim sne As SimpleNameExpression
             sne = TryCast(m_First, SimpleNameExpression)
+            'Console.WriteLine(Me.Location.ToString(Compiler))
             Helper.Assert(sne IsNot Nothing)
-
             Dim propD As PropertyDescriptor
             Helper.Assert(sne.Classification.IsPropertyGroupClassification)
             Helper.Assert(sne.Classification.AsPropertyGroup.IsResolved)
+            Helper.Assert(sne.Classification.AsPropertyGroup.ResolvedProperty 
IsNot Nothing)
 
             propD = 
TryCast(sne.Classification.AsPropertyGroup.ResolvedProperty, PropertyDescriptor)
             Helper.Assert(propD IsNot Nothing)

Modified: trunk/mono-basic/vbnc/vbnc/source/Parser/Parser.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Parser/Parser.vb  2007-06-22 16:10:33 UTC 
(rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Parser/Parser.vb  2007-06-22 16:18:39 UTC 
(rev 80561)
@@ -145,7 +145,7 @@
         If tm.Accept(KS.On) Then
             m_Off = False
         ElseIf tm.Accept("Off") Then
-            Console.WriteLine("Warning (" & 
tm.CurrentToken.Location.File(Compiler).FileName & "): Option Strict Off will 
probably fail.")
+            Compiler.Report.ShowMessage(Messages.VBNC99999, 
tm.PeekToken(-1).Location, "Option Strict Off will probably fail.")
             m_Off = True
         End If
 

Modified: trunk/mono-basic/vbnc/vbnc/source/Resources/Errors.resx
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Resources/Errors.resx     2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Resources/Errors.resx     2007-06-22 
16:18:39 UTC (rev 80561)
@@ -998,4 +998,5 @@
   <data name="90021"><value>Invalid data type: '{0}'.</value></data>
   <data name="90022"><value>Unexpected end of file in comment.</value></data>
   <data name="90023"><value>There is no comparison possible between '{0}' and 
'{1}'.</value></data>
+  <data name="99999"><value>{0}</value></data>
   </root>
\ No newline at end of file

Modified: trunk/mono-basic/vbnc/vbnc/source/Resources/GenerateCodeAndResX.sh
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Resources/GenerateCodeAndResX.sh  
2007-06-22 16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Resources/GenerateCodeAndResX.sh  
2007-06-22 16:18:39 UTC (rev 80561)
@@ -1,2 +1,2 @@
-rm -f Errors.resx
-mono ../../../msg-generator/msg-gen.exe /mergesource:Source.xml  
/outvb:../General/Messages.vb /outresx:Errors.resx
+rm Errors.resx
+mono ../../../msg-generator/msg-gen.exe /mergesource:Source.xml  
/outvb:../General/Messages.vb /outresx:Errors.resx

Modified: trunk/mono-basic/vbnc/vbnc/source/Resources/Source.xml
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/Resources/Source.xml      2007-06-22 
16:10:33 UTC (rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/Resources/Source.xml      2007-06-22 
16:18:39 UTC (rev 80561)
@@ -4837,4 +4837,9 @@
                <VBNCValue>There is no comparison possible between '{0}' and 
'{1}'.</VBNCValue>
                <VBValue>(no corresponding VB error)</VBValue>
        </Message>
+  <Message id="99999" level="Error">
+    <Comment>Whatever you wish :)</Comment>
+    <VBNCValue>{0}</VBNCValue>
+    <VBValue>(no corresponding VB error)</VBValue>
+  </Message>
 </Messages>

Modified: trunk/mono-basic/vbnc/vbnc/source/vbnc.vbproj
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/vbnc.vbproj       2007-06-22 16:10:33 UTC 
(rev 80560)
+++ trunk/mono-basic/vbnc/vbnc/source/vbnc.vbproj       2007-06-22 16:18:39 UTC 
(rev 80561)
@@ -43,7 +43,7 @@
     <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' 
">
-    <OutputPath>../bin/</OutputPath>
+    <OutputPath>..\bin</OutputPath>
     <BaseAddress>285212672</BaseAddress>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
@@ -74,11 +74,11 @@
     <RootNamespace>vbnc</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
-    <OutputPath>../bin/</OutputPath>
+    <OutputPath>..\bin</OutputPath>
     <BaseAddress>285212672</BaseAddress>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
@@ -99,11 +99,11 @@
     <RootNamespace>vbnc</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)' == 'Self Compile' ">
-    <OutputPath>../bin/</OutputPath>
+    <OutputPath>..\bin</OutputPath>
     <BaseAddress>285212672</BaseAddress>
     <DocumentationFile>vbnc.xml</DocumentationFile>
     <NoWarn>42004,42026</NoWarn>
@@ -128,14 +128,14 @@
     <RootNamespace>vbnc</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)' == 'RuntimeTests' ">
     <DebugSymbols>True</DebugSymbols>
     <DefineDebug>true</DefineDebug>
     <DefineTrace>true</DefineTrace>
-    <OutputPath>../bin/</OutputPath>
+    <OutputPath>..\bin</OutputPath>
     <BaseAddress>285212672</BaseAddress>
     <DocumentationFile>vbnc.xml</DocumentationFile>
     <WarningLevel>1</WarningLevel>
@@ -165,8 +165,8 @@
     <RootNamespace>vbnc</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 
'Release|AnyCPU' ">
     
<WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
@@ -175,7 +175,7 @@
     <DocumentationFile>vbnc.xml</DocumentationFile>
     <OutputType>Exe</OutputType>
     <AssemblyName>vbnc</AssemblyName>
-    <OutputPath>../bin/</OutputPath>
+    <OutputPath>..\bin</OutputPath>
     <RootNamespace>vbnc</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
     <Optimize>True</Optimize>
@@ -185,8 +185,8 @@
     <WarningLevel>1</WarningLevel>
     <NoWarn>
     </NoWarn>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Self 
Compile|AnyCPU' ">
     <NoWarn>
@@ -195,7 +195,7 @@
     <DocumentationFile>vbnc.xml</DocumentationFile>
     <OutputType>Exe</OutputType>
     <AssemblyName>vbnc_ms</AssemblyName>
-    <OutputPath>./</OutputPath>
+    <OutputPath>.</OutputPath>
     <DebugSymbols>True</DebugSymbols>
     <RootNamespace>vbnc_ms</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
@@ -204,8 +204,8 @@
     <DefineConstants>
     </DefineConstants>
     <WarningLevel>1</WarningLevel>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 
'RuntimeTests|AnyCPU' ">
     <NoWarn>
@@ -214,7 +214,7 @@
     <DocumentationFile>vbnc.xml</DocumentationFile>
     <OutputType>Exe</OutputType>
     <AssemblyName>vbnc_ms</AssemblyName>
-    <OutputPath>./</OutputPath>
+    <OutputPath>.</OutputPath>
     <DebugSymbols>True</DebugSymbols>
     <RootNamespace>vbnc_ms</RootNamespace>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
@@ -223,8 +223,8 @@
     <DefineConstants>
     </DefineConstants>
     <WarningLevel>1</WarningLevel>
-    <OptionExplicit>True</OptionExplicit>
-    <OptionStrict>True</OptionStrict>
+    <OptionExplicit>On</OptionExplicit>
+    <OptionStrict>On</OptionStrict>
   </PropertyGroup>
   <ItemGroup>
     <Import Include="System" />
@@ -822,7 +822,7 @@
     <Reference Include="System, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" />
     <Reference Include="System.Drawing, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a" />
     <Reference Include="System.Windows.Forms, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-    <Reference Include="System.XML" />
+    <Reference Include="System.Xml, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" />
   </ItemGroup>
   <ItemGroup>
     <BootstrapperFile Include="Microsoft.Net.Framework.2.0">

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to