mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 10:00:33 +02:00
IDE: codecontext hints: added open array type
git-svn-id: trunk@25532 -
This commit is contained in:
parent
9d7aa39624
commit
2450332df9
@ -312,17 +312,22 @@ procedure TCodeContextFrm.CreateHints(const CodeContexts: TCodeContextInfo);
|
|||||||
phpWithResultType]);
|
phpWithResultType]);
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
ctnOpenArrayType:
|
||||||
|
begin
|
||||||
|
s:=s+'[Index: PtrUInt]';
|
||||||
|
Result:=true;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end else if Expr.Desc in (xtAllStringTypes+xtAllWideStringTypes-[xtShortString])
|
end else if Expr.Desc in (xtAllStringTypes+xtAllWideStringTypes-[xtShortString])
|
||||||
then begin
|
then begin
|
||||||
s:=s+'[position: 1..high(PtrUInt)]';
|
s:=s+'[Index: 1..high(PtrUInt)]';
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end else if Expr.Desc=xtShortString then begin
|
end else if Expr.Desc=xtShortString then begin
|
||||||
s:=s+'[position: 0..255]';
|
s:=s+'[Index: 0..255]';
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end else begin
|
|
||||||
debugln(['FindBaseType ',ExprTypeToString(Expr)]);
|
|
||||||
end;
|
end;
|
||||||
|
if not Result then
|
||||||
|
debugln(['TCodeContextFrm.CreateHints.FindBaseType: not yet supported: ',ExprTypeToString(Expr)]);
|
||||||
except
|
except
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user