OpenSimMirror/OpenSim/Tools
Aleric Inglewood 56a3d2f00d Improved line map heuristics.
If the C# column can't be found in the positionMap (but the line can),
use the map immediately after it while correcting for the offset,
unless that results in an LSL position before the previous LSL position
in the positionMap.

The idea behind this heuristic is that in most, if not all cases C#
consumes more characters than LSL (for example LSL_Types.LSLInteger
instead of just 'integer').

Thus if the distance between the columns of two markers differ in
the C# and LSL file, the distance in the C# file will be larger.
Moreover, we can assume that every time this happens we will have
a marker at the beginning of the longer 'keyword', because those
keywords were generated by us in the first place.

For example:

C#:     LSL_Types.LSLInteger f2(LSL_Types.LSLString s)
        ^                       ^
        1                       2

will always have markers at the beginning of the long keywords
'LSL_Types.LSLInteger' and 'LSL_Types.LSLString'.
If an error is generated in between (for example at the beginning
of the function name 'f2') then the correct position is found
by using an offset relative to 2 rather than 1.

Note that a case where this isn't working correctly is
when the user adds extra spaces. For example:

LSL:   integer f2(    string s)

would still use the start of 'string' as reference and
then go backwards 3 characters only because the corresponding
C# still looks like

C#:     LSL_Types.LSLInteger f2(LSL_Types.LSLString s)
                             ^  ^
			     only 3 chars difference

and the reported error at 'f2' would be here:

LSL:   integer f2(    string s)
                   ^

This can only be fixed by generating a mapping for 'f2' itself, or
generating a mapping whenever the amount of spaces is changed.
2014-08-02 00:49:36 +01:00
..
Compiler Improved line map heuristics. 2014-08-02 00:49:36 +01:00
Configger Delete extraneous console message in the Configger. 2014-05-07 17:19:57 -07:00
LaunchSLClient Switch runprebuild.bat from VS2005 to VS2008. Remove runprebuild2008.bat. 2009-07-10 04:29:00 +00:00
OpenSim.32BitLaunch Update OpenSim.32BitLaunch.exe and Robust.32BitLaunch.exe to .NET 4 versions. 2013-11-13 01:07:14 +00:00
Robust.32BitLaunch Update OpenSim.32BitLaunch.exe and Robust.32BitLaunch.exe to .NET 4 versions. 2013-11-13 01:07:14 +00:00
pCampBot Eliminated 'Obsolete' warning: don't call do-nothing function SetPreviousAppearance() 2014-04-23 14:38:04 +01:00
classaudit.pl Updated paths in classaudit script. 2008-02-25 11:53:21 +00:00