mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:19:32 +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]);
|
||||
Result:=true;
|
||||
end;
|
||||
ctnOpenArrayType:
|
||||
begin
|
||||
s:=s+'[Index: PtrUInt]';
|
||||
Result:=true;
|
||||
end;
|
||||
end;
|
||||
end else if Expr.Desc in (xtAllStringTypes+xtAllWideStringTypes-[xtShortString])
|
||||
then begin
|
||||
s:=s+'[position: 1..high(PtrUInt)]';
|
||||
s:=s+'[Index: 1..high(PtrUInt)]';
|
||||
Result:=true;
|
||||
end else if Expr.Desc=xtShortString then begin
|
||||
s:=s+'[position: 0..255]';
|
||||
s:=s+'[Index: 0..255]';
|
||||
Result:=true;
|
||||
end else begin
|
||||
debugln(['FindBaseType ',ExprTypeToString(Expr)]);
|
||||
end;
|
||||
if not Result then
|
||||
debugln(['TCodeContextFrm.CreateHints.FindBaseType: not yet supported: ',ExprTypeToString(Expr)]);
|
||||
except
|
||||
end;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user